# DHT11 is giving an error

**URL:** <https://discourse.nodered.org/t/dht11-is-giving-an-error/12255>\
**Category:** General\
**Created:** [15 June 2019 07:58 UTC](https://discourse.nodered.org/t/dht11-is-giving-an-error/12255 "2019-06-15T07:58:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gosaye\_1](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@gosaye\_1](https://discourse.nodered.org/u/gosaye_1)\
**Post date:** [15 June 2019 07:58 UTC](https://discourse.nodered.org/t/dht11-is-giving-an-error/12255/1 "2019-06-15T07:58:55Z")

</div>

my dht11 sensor has bin configured correctly but is not working?  
it gives a msg value of  
\_msgid: "5e01a3d1.dfba7c"  
topic: "rpi-dht11"  
payload: "0.00"  
humidity: "0.00"  
isValid: false  
errors: 4  
sensorid: "dht11"  
please help me?  
what should i do?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [15 June 2019 08:00 UTC](https://discourse.nodered.org/t/dht11-is-giving-an-error/12255/2 "2019-06-15T08:00:37Z")

</div>

Check that the sensor is working outside of Node-RED

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 June 2019 10:01 UTC](https://discourse.nodered.org/t/dht11-is-giving-an-error/12255/3 "2019-06-15T10:01:04Z")

</div>

DHT11's do regularly fail to read. The can also fail to return a reading if you try to do it too quickly.

They are also pretty terrible. They are very inaccurate and drift off even worse over time. The DHT22's are slightly but not much better. Sensors like the BME280 and the HTU21D can be had for pretty much the same price now and are far more accurate. They also use the I2C interface which makes them dead easy to use.
