adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
179 stars 62 forks source link

DHT22 report null after a while #39

Closed lioxcleaners closed 4 years ago

lioxcleaners commented 4 years ago

BUG DESCRIPTION Hello *. I have a problem with my DHT22. After some time (hours, days) I get null values from sensor (sometimes both). So I attached 2 sensors to my raspberry pi via GPIO2, 27.

The results are confusing: If one sensors show null, one other may keep reporting good values! Reboot of rpi does not help at all. Hard reset (Power off / on) of rpi always works. Power reset (3.3-5V off / on) of a sensor only SOMETIMES works. Data reset (pull cable and replug) of sensor works almost always. If data reset (on ONE sensor) works, other null sensor will start reporting good values as well!

TO REPRODUCE Nothing it happens all time, works after reboot for a minute then it starts to get null more and more null. After some hours or so only null values.

EXPECTED BEHAVIOR Get both values.