user6447: I've the VCNL 4000 Proximity Sensor I use some sample code and at the very beginning
the following code hangs (never finishes)
 readVCNLByte(0x81); is called

Can this problem be caused because the contact of the pin isn't very good.
I only but the part with pins in the sensor without to solder it.
Is it likely that this may be the problem ? I have not many experince with solder and the sensor is really small so i'd like to avoid it for first tests ;)
Here the code. The last output in the Serial window is "pre product"
  Serial.println("VCNL");
  Wire.begin();
  Serial.println("pre product");
  uint8_t rev = read8(VCNL4000_PRODUCTID);
   Serial.println("post product");
  if ((rev & 0xF0) != 0x10) {
    Serial.println("Sensor not found :(");
    while (1);
  }





user5168: You really can't expect this to work unsoldered. The contacts will be at best intermittent, and poor contact. Even a 'dry joint' where the pin is mostly surrounded by solder doesn't work well, these are the ultimate examples! You could however use an edge-connector, if you can find one; not something you see often nowadays.

6447: <p>I've the VCNL 4000 Proximity Sensor I use some sample code and at the very beginning</p>
<p>the following code hangs (never finishes)</p>
<pre><code> readVCNLByte(0x81); is called
</code></pre>
<p>Can this problem be caused because the contact of the pin isn't very good.</p>
<p>I only but the part with pins in the sensor without to solder it.</p>
<p>Is it likely that this may be the problem ? I have not many experince with solder and the sensor is really small so i'd like to avoid it for first tests ;)</p>
<p>Here the code. The last output in the Serial window is &quot;pre product&quot;</p>
<pre><code>  Serial.println(&quot;VCNL&quot;);
  Wire.begin();
  Serial.println(&quot;pre product&quot;);
  uint8_t rev = read8(VCNL4000_PRODUCTID);
   Serial.println(&quot;post product&quot;);
  if ((rev &amp; 0xF0) != 0x10) {
    Serial.println(&quot;Sensor not found :(&quot;);
    while (1);
  }
</code></pre>
<p><img src="https://i.stack.imgur.com/jcIwU.jpg" alt="Before" /></p>
<p><img src="https://i.stack.imgur.com/2MBZ0.jpg" alt="After" /></p>
<p><img src="https://i.stack.imgur.com/prnZ1.jpg" alt="enter image description here" /></p>
 5168: <p>You really can't expect this to work unsoldered. The contacts will be at best intermittent, and poor contact. Even a 'dry joint' where the pin is mostly surrounded by solder doesn't work well, these are the ultimate examples! You could however use an edge-connector, if you can find one; not something you see often nowadays.</p>
