# Accessing Temp reading from DS18b20 sensor connected to GPIO4 (pin7) on raspberry pi on node red

**URL:** <https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227>\
**Category:** General\
**Created:** [29 December 2024 01:25 UTC](https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227 "2024-12-29T01:25:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ogatech](https://avatars.discourse-cdn.com/v4/letter/o/43a26b/32.png) [@ogatech](https://discourse.nodered.org/u/ogatech)\
**Post date:** [29 December 2024 01:25 UTC](https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227/1 "2024-12-29T01:25:41Z")

</div>

I have set up my python code to read the temperature signal on raspberry pi after I have used Digital to Analog converter but I don't know how to read the temperature signal on the pi in node red. Please help

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [29 December 2024 05:38 UTC](https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227/2 "2024-12-29T05:38:25Z")

</div>

There is a node for node red that makes it easy to use a b20 sensor. Used it it for a while but that's been a while ago so I can't come up with the name right now. Have you searched for a node?

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [29 December 2024 06:51 UTC](https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227/3 "2024-12-29T06:51:51Z")

</div>

Maybe these nodes???

> **[node-red-contrib-sensor-dynamic-ds18b20](https://flows.nodered.org/node/node-red-contrib-sensor-dynamic-ds18b20)**
>
> Node-RED node to dynamically get sensor id's in UI and read temperatures from DS18B20 sensors

> **[node-red-contrib-sensor-ds18b20](https://flows.nodered.org/node/node-red-contrib-sensor-ds18b20)**
>
> Node-RED node to get temperature in centigrades from DS18B20 sensors

There are other DS18B20 nodes listed in the Node-RED Library.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [29 December 2024 07:52 UTC](https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227/4 "2024-12-29T07:52:26Z")

</div>

This was posted on the Forum some time ago - might be worth having a look at it?

> [@Display temp (18b20) on oled with just pi and nodered](https://discourse.nodered.org/t/display-temp-18b20-on-oled-with-just-pi-and-nodered/5426):
>
> This is to document my learning to use a ds18b20 temps sensor and displaying it to a OLED display using just node red installed in a Raspberry Pi 3. This may help other beginners like myself with the node red journey. While this "temp and display thing" has been done many times before with python etc in the pi or in combination with esp8266 to drive the oled, i could not find any such implementation using just the PI and node red alone on the net. In the process I learnt a bit about nodered. I…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 March 2025 07:53 UTC](https://discourse.nodered.org/t/accessing-temp-reading-from-ds18b20-sensor-connected-to-gpio4-pin7-on-raspberry-pi-on-node-red/94227/5 "2025-03-29T07:53:03Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
