# No sensors displaying on RPI, attempting to read DS18B20

**URL:** <https://forums.balena.io/t/no-sensors-displaying-on-rpi-attempting-to-read-ds18b20/4907>\
**Category:** Product support\
**Tags:** raspberrypi3\
**Created:** [January 5, 2019, 7:37pm UTC](https://forums.balena.io/t/no-sensors-displaying-on-rpi-attempting-to-read-ds18b20/4907 "2019-01-05T19:37:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugeyed](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bugeyed](https://forums.balena.io/u/bugeyed)\
**Post date:** [January 5, 2019, 7:37pm UTC](https://forums.balena.io/t/no-sensors-displaying-on-rpi-attempting-to-read-ds18b20/4907/1 "2019-01-05T19:37:32Z")

</div>

I seem to have successfully gone through the setup. But my Pi does not appear to be finding the temperature sensor. I’ve set the following on my fleet:

RESIN\_HOST\_CONFIG\_dtoverlay = “w1–gpio”

I am running “sudo modprobe w1-gpio && sudo modprobe w1-therm && sudo node dist/app.js”

Commands run without a hitch, but my /sys/bus/w1/devices folder is empty, not even a “w1\_bus\_master1” file is present.

My wiring is, I believe correct, and even if it wasn’t I should be getting “w1\_bus\_master1” when running the modprobe commands.

Manually running modprobe in either my web service, or on the host OS via the Terminal in my dashboard doesn’t do anything either.

**EDIT: turns out I had the wrong hyphen character in w1-pgio somehow; this was the correct one: w1-gpio**

---

<div class="post-metadata">

**Author:** ![wwalker](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/wwalker/32/1225_2.png) [@wwalker](https://forums.balena.io/u/wwalker)\
**Post date:** [January 21, 2019, 4:13pm UTC](https://forums.balena.io/t/no-sensors-displaying-on-rpi-attempting-to-read-ds18b20/4907/4 "2019-01-21T16:13:36Z")

</div>

Hey @bugeyed!

Working with the TEMPer USB thermometer, I was able to develop this [repo](https://github.com/willswire/balena-temperatures). Of course the hardware is different than the one you’re describing, however I just wanted to share the resource!

---

<div class="post-metadata">

**Author:** ![zrzka](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zrzka/32/1612_2.png) [@zrzka](https://forums.balena.io/u/zrzka)\
**Post date:** [January 21, 2019, 4:32pm UTC](https://forums.balena.io/t/no-sensors-displaying-on-rpi-attempting-to-read-ds18b20/4907/5 "2019-01-21T16:32:52Z")

</div>

Hi,

here’s my configuration for RPi & DS18B20:

- `RESIN_HOST_CONFIG_dtoverlay=w1-gpio,pullup=1`

Re `pullup=1` - it really depends if your DS18B20 has 2 or 3 wires and how is it wired. You can check more details at:

- [https://www.robertvojta.com/rust-thermometer-part-1/](https://www.robertvojta.com/rust-thermometer-part-1/)
- [https://www.robertvojta.com/rust-thermometer-part-2/](https://www.robertvojta.com/rust-thermometer-part-2/)

There’s no need to call `modprobe w1-gpio`, etc.

HTH,  
Robert

---

<div class="post-metadata">

**Author:** ![zrzka](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/zrzka/32/1612_2.png) [@zrzka](https://forums.balena.io/u/zrzka)\
**Post date:** [January 21, 2019, 4:39pm UTC](https://forums.balena.io/t/no-sensors-displaying-on-rpi-attempting-to-read-ds18b20/4907/6 "2019-01-21T16:39:28Z")

</div>

P.S. I forgot to mention that this `pullup=1` is required for the parasite power mode. This blog ([https://randomnerdtutorials.com/guide-for-ds18b20-temperature-sensor-with-arduino/](https://randomnerdtutorials.com/guide-for-ds18b20-temperature-sensor-with-arduino/)) contains nice schematics for both parasite & normal, so, you can compare them.
