Particle electron with DS18B20 temperature sensor : No readings

sorry for the delay getting back to you....

I used a 3.3 kΩ for 3.3V Boron device.
The resistor pictured, I believe, is 4.7 kΩ

As @ScruffR said, you can pinout the way you wish. In my case, D6 turned out to be my data pin. Per library example:

D2 dsVCC 3.3V
D4 dsGND GROUND
D3 dsDATA 3.3 kΩ pull-up between DATA and 3.3V VCC allowing max 1mA current flow

I came across this posting a couple of years ago and it helped me out:

https://community.particle.io/t/power-ds18b20-with-3-3v/48140/3

This is the product from Adafruit I hooked up. It comes with a 4.7 kΩ resistor. I reduced errors (NAN) significantly by reducing the resistor value.
https://www.adafruit.com/product/381

2 Likes