DTH11 sensor checksum error

Hi all,

Hope this is the right place to ask...

I got a brand new DTH11 Humidity and Temperature Sensor and started playing with it. It's the most simple sketch I can imagine (5V, ground and a signal to one of the digital pins). I downloaded the DTH11 library as the sensor sends multiple readings over the same pin. I can see the values rolling over the screen in the serial monitor (they are way off).

The sensor has a checksum and it always equals -1, the checksom error code. It means something went wrong during the transfer. Does anybody have an idea what could go wrong? Should I add some components between the sensor signal pin and the Arduino one?

Thanks for the help!

The DTH11 sensor I am using:

which DHT library are you using (there are different ones)?

Can you post your code?

How long are the wires to the sensor?

That solved it!

I found a library on the interwebs and thought it would be just fine but it seems the library was broken. I switched to the Adafruit DHT library (GitHub - adafruit/DHT-sensor-library: Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors) and this one seems to work much better. I get a steady 21 degrees which seems normal. :slight_smile:

Thanks Rob!

Welcome!