# DS18B20 not functioning

**URL:** <https://discourse.nodered.org/t/ds18b20-not-functioning/68769>\
**Category:** Hardware\
**Created:** [9 October 2022 15:51 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769 "2022-10-09T15:51:22Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![fpfeifer](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Post date:** [9 October 2022 15:51 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/1 "2022-10-09T15:51:22Z")

</div>

Hello,  
I have the problem that I have 5 DS18B20 temperature sensors in my heating system. Now I have ordered 5 more and wanted to integrate them into the dashboard. The only problem is, if I connect all 10 sensors together to GPIO 4, I don't get a value from any sensor. But if I only plug in the 5 new ones or only the 5 old ones, they are all displayed to me and I also get a value. I use the node-red-contrib-sensor-ds18b20 palette. Unfortunately, it didn't work with others either. can someone help me why it doesn't work?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 October 2022 16:46 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/2 "2022-10-09T16:46:06Z")

</div>

Show us how you have connected them to the pi. If you have a pull-up resistor what resistance is it?

---

<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:** [9 October 2022 16:51 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/3 "2022-10-09T16:51:39Z")

</div>

There is a thing called pin loading. This has to do with how many devices a pin on some device can sink before it becomes non responsive. This number is different for all devices and depends on how much each individual device connected to it draws or consumes and how much the pin can deliver. I don't know what that figure is for a pi or how much each sensor is pulling but you may be over the limit. If that's the case there is nothing to be done as it is an electrical limit. I think @Colin is heading for a misconfiguration and that may be the case. But you may be over the pin's ability to handle the draw.

---

<div class="post-metadata">

**Author:** ![fpfeifer](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Post date:** [9 October 2022 17:35 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/4 "2022-10-09T17:35:45Z")

</div>

Thanks in advance for the feedback.  
But because of the number of sensors, if I connect an old and a new one, I can't see one displayed and no values.  
I'll test that with the other resistor tomorrow.

---

<div class="post-metadata">

**Author:** ![fpfeifer](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Post date:** [9 October 2022 17:37 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/5 "2022-10-09T17:37:39Z")

</div>

I have VCC at 3.3V, GND at GND and I have the data pin at GPIO4 with a 10k (may have been a 4.7k) resistor to VCC.

I'll measure it tomorrow and swap it for a different one.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 October 2022 18:34 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/6 "2022-10-09T18:34:45Z")

</div>

> [@fpfeifer](#):
>
> with a 10k

Much too big. Try 1.5k  
Though I am not convinced that you will get it to work with 10.

Have you daisy chained as you are supposed to?

---

<div class="post-metadata">

**Author:** ![fpfeifer](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Post date:** [9 October 2022 18:51 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/7 "2022-10-09T18:51:24Z")

</div>

![Schematic_test_2022-10-09](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/7/378eae7245126fb0f74eb51b25118f83d2ad715e.png)

Here is the circuit diagram of how I connected it.

---

<div class="post-metadata">

**Author:** ![fpfeifer](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Post date:** [9 October 2022 18:54 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/8 "2022-10-09T18:54:57Z")

</div>

I'll try 1.5k tomorrow and report back.

I'm just surprised that when I clamp a new sensor and an old one together, it doesn't work and when I take two old ones or two new ones, it works. Then it can't normally be due to the resistance?!

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [9 October 2022 19:05 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/9 "2022-10-09T19:05:14Z")

</div>

Hopefully the resistance and wiring will help. But there are a lot of fakes out there that may have a variety of problems. Eg see [GitHub - cpetrich/counterfeit\_DS18B20: How to tell original from fake DS18B20 temperature sensors.](https://github.com/cpetrich/counterfeit_DS18B20)

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [9 October 2022 19:07 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/10 "2022-10-09T19:07:39Z")

</div>

> [@dceejay](#):
>
> But there are a lot of fakes out there

That was my first thought!

---

<div class="post-metadata">

**Author:** ![fpfeifer](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@fpfeifer](https://discourse.nodered.org/u/fpfeifer)\
**Post date:** [9 October 2022 19:09 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/11 "2022-10-09T19:09:04Z")

</div>

I bought 2x the same ones from the same manufacturer, there is only a time difference of half a year between them.

I ordered these from a normal good manufacturer from Germany:

> **[AZDelivery 10 x 3M Kabel DS18B20 digitaler Edelstahl Temperatursensor...](https://www.amazon.de/AZDelivery-3M-Kabel-DS18B20-Parent/dp/B07ZQMG51R)**
>
> Amazon.de: AZDelivery 10 x 3M Kabel DS18B20 digitaler Edelstahl Temperatursensor Temperaturfühler, wasserdicht kompatibel mit Arduino und Raspberry Pi inklusive E-Book! - Schneller & kostenloser Versand ab 29€. Jetzt bestellen!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [9 October 2022 19:20 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/12 "2022-10-09T19:20:48Z")

</div>

Unfortunately, that is not a manufacturer but a re-seller. Amazon sellers are not automatically a good choice. As @dceejay stated, there are a lot of fakes, I have also had a delivery of bad sensors from Amazon.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [9 October 2022 20:57 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/13 "2022-10-09T20:57:53Z")

</div>

> [@fpfeifer](#):
>
> I'm just surprised that when I clamp a new sensor and an old one together, it doesn't work and when I take two old ones or two new ones, it works.

As others have said, you probably have some fakes and they are interacting in some way.

---

<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:** [23 October 2022 20:58 UTC](https://discourse.nodered.org/t/ds18b20-not-functioning/68769/14 "2022-10-23T20:58:22Z")

</div>

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