# \[solved!\]DHT11's stopped working on Pi3b

**URL:** <https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310>\
**Category:** Hardware\
**Created:** [23 February 2019 21:15 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310 "2019-02-23T21:15:58Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [23 February 2019 21:15 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/1 "2019-02-23T21:15:58Z")

</div>

Raspian with the latest updates and kernel. Pi3B+  
I have been running a pi out in the greenhouse since last spring and I just noticed the temp/humidity DHT11 sensor stopped working.  
I am using node-red with the node-red-contrib-dht-sensor lib. I just figured the sensor went bad so I ordered another and... woops the sensor is fine...  
I have a spare Pi so I decided to try to get a spare DHT11 running on a fresh install.  
Still no joy. Something must have borked in an update, maybe? Does anybody else have any DHT11's running?  
Here is a simple debug flow for one.

```auto
[{"id":"99fdf180.ce","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"4b7411e7.09ff6","type":"inject","z":"99fdf180.ce","name":"","topic":"","payload":"","payloadType":"date","repeat":"2","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":100,"wires":[["3228568d.3137ca"]]},{"id":"3228568d.3137ca","type":"rpi-dht22","z":"99fdf180.ce","name":"DHT11","topic":"rpi-dht11","dht":"11","pintype":"0","pin":4,"x":367,"y":113,"wires":[["808f8448.936a08"]]},{"id":"808f8448.936a08","type":"debug","z":"99fdf180.ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":568,"y":108,"wires":[]}]
```

output

`object
topic: "rpi-dht11"
payload: "0.00"
_msgid: "997fc7b.a04e738"
humidity: "0.00"
isValid: false
errors: 4
location: "DHT11"
sensorid: "dht11"`  
Any advice on how to troubleshoot this would be greatly appreciated!

Cheers,  
Jon

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [23 February 2019 21:45 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/2 "2019-02-23T21:45:55Z")

</div>

Hey Jon,

I haven't running a DHT11 sensor at the moment. But seems the [node-red-contrib-dht-sensor](https://flows.nodered.org/node/node-red-contrib-dht-sensor) that you are using, is build on top of node-dht-sensor. In this [issue](https://github.com/momenso/node-dht-sensor/issues/57#issuecomment-260194670), they talk about a **dht-sensor.log** file.

Can you perhaps find more information inside that log file?  
Bart

---

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [23 February 2019 23:02 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/3 "2019-02-23T23:02:32Z")

</div>

Thanks for that!  
I tried the Validation method outlined there and still no joy.  
The log file is not present on my system either.  
I will try and make a post there too.  
Thanks,  
Jon

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 February 2019 01:34 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/4 "2019-02-24T01:34:38Z")

</div>

do you have a 4.7K resistor between the data line and Vcc? I don't remember where I forund that tidbit, but is how I always connecdt them up  
 ![24%20PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/bf1d21b40cfb6f3b9f5d1b44417a29bcbd9bebb6.png)

---

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [24 February 2019 02:13 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/5 "2019-02-24T02:13:40Z")

</div>

There is one built into the cct board attached to the DHT11.  
This has been working for almost a year before it quit so it should not be a connection or hardware issue (tried a brand new sensor too).  
Cheers,  
Jon

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 February 2019 11:41 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/6 "2019-02-24T11:41:26Z")

</div>

What version of node-red-contrib-dht-sensor are you using? You can find out by using `manage palette`  
what version of NR and node.j (can be found in startup log)  
what GPIO pins are you using?  
what version of the bcm2385 lib?

---

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [24 February 2019 13:41 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/7 "2019-02-24T13:41:56Z")

</div>

I am using the latest version of all of that on this fresh install.  
node-red-contrib-dht-sensor v1.0.4  
`uname -a Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux lsb_release -d Description:	Raspbian GNU/Linux 9.8 (stretch)`  
`npm list (node:1467) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead. node-dht-sensor@0.0.34 /home/pi/Downloads/node-dht-sensor └── nan@2.8.0 node -v v8.11.1 npm -v 1.4.21 (node:1482) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.`  
I am using GPIO pin 4 and the latest bcm2385 libs 1.58 .

 ![IMG_20190223_1813499](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e236da470509bda5f79eca6750f404a302ef75c9.jpeg)  
Cheers,  
Jon

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 February 2019 13:46 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/8 "2019-02-24T13:46:23Z")

</div>

Please don't take this wrong, but saying you are on the latest versions doesn't help anyone. If someone in the future looks at this they will have no idea what releases were envolved. In addition in the last couple days any one of the peices may have been updated. So please give me the exact releases.

I'm setting up a test system but have to go out for a couple hous so I won't e back on for a bit.

---

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [24 February 2019 13:53 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/9 "2019-02-24T13:53:33Z")

</div>

No offence taken!  
I appreciate you trying to help me.  
All of the pertinent versions are listed above.  
Cheers,  
Jon

---

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [24 February 2019 14:02 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/10 "2019-02-24T14:02:44Z")

</div>

Solved! The new sensor's I got have 3 pins instead of 4, the pinout I had was incorrect!  
[https://components101.com/dht11-temperature-sensor](https://components101.com/dht11-temperature-sensor) Dont use that one its wrong!!  
This one is correct:  
[http://www.circuitbasics.com/how-to-set-up-the-dht11-humidity-sensor-on-the-raspberry-pi/](http://www.circuitbasics.com/how-to-set-up-the-dht11-humidity-sensor-on-the-raspberry-pi/)  
Now back to trouble shooting the original issue...  
Thank you for your time!  
Best regards,  
Jon

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 February 2019 14:10 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/11 "2019-02-24T14:10:36Z")

</div>

In the future start your thread with

Platform: pi 3 model B+  
OS: Stretch-lite 2018-11-13  
Node-RED: 0.19.5  
Node.js: v10.15.1  
problem node: node-red-contrib-dht-sensor v1.0.4  
node-dht-sensor@0.0.34  
bcm2385 libs 1.58

problem: blah blah blah

that will make it much easier for people, that want to help, get up to speed with the issue.

---

<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:** [24 February 2019 16:22 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/12 "2019-02-24T16:22:54Z")

</div>

> [@JonHeron](#):
>
> node -v v8.11.1 npm -v 1.4.21

npm 1.4 is known to break many things... and is def not "the latest" - neither is node 8.11.1 ... they may be what apt / debian / raspbian give you by default - but are way back level and do not have the latest security and other fixes.

---

<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:** [24 February 2019 16:40 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/13 "2019-02-24T16:40:38Z")

</div>

The best way to get a known working set of tools is to upgrade using the install/upgrade script for the Pi in the node-red docs.  
[https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi)

---

<div class="post-metadata">

**Author:** ![JonHeron](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jonheron/32/6261_2.png) [@JonHeron](https://discourse.nodered.org/u/JonHeron)\
**Post date:** [24 February 2019 18:21 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/14 "2019-02-24T18:21:53Z")

</div>

Thank you gentlemen!  
It turns out the original issue was a fried GPIO pin.  
Cheers,  
Jon

---

<div class="post-metadata">

**Author:** ![emishon](https://avatars.discourse-cdn.com/v4/letter/e/e5b9ba/32.png) [@emishon](https://discourse.nodered.org/u/emishon)\
**Post date:** [5 March 2020 14:04 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/15 "2020-03-05T14:04:36Z")

</div>

Thank you, Jon.  
It also bothered me for a day.  
Thanks!

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [5 March 2020 14:16 UTC](https://discourse.nodered.org/t/solved-dht11s-stopped-working-on-pi3b/8310/16 "2020-03-05T14:16:14Z")

</div>


