DHT11 too high values

Hello, I am a newbie on Arduino matters.
I connected a DHT11 hum/temp sensor to my Arduino Leonardo as shown here:

http://www.ladyada.net/wiki/tutorials/learn/sensors/dht.html

using the suggested code, and it seems to work fine.
But, the data I received in the log are quite strange: values are too high (about 600° C temp / 1200% humidity).
How could it be possible?
thanks
A

the dog ate the sensor? :smiley:

are all readings wrong?
or just <10%?

r u sure u connected the wires right?

I just followed the scheme in the URL. Maybe is there some difference with the Leonardo board?

Did you connect to same pins as described in the tutorial and select correct device in there example code as it defaults to DHT22 and not DHT11

// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)

The humidity of this sensor is discussed here in the past and its accuracy is not always high.
Sometimes recalibration helps, see datasheet, but not always.

Riva, you are right! It was declared as DHT22.... Sorry, I'm still a beginner..
thank you
A

Glad you got it working okay and it's not a faulty device.

​hi, i have a problem, why the result of my sensor DHT11 in serial monitor is -999.0? i already connected correctly
how i do solve this? please help

Check the code of the library.
#define DHTLIB_INVALID_VALUE -999
so the -999 is an indication that something went wrong.

please print the returnvalue of the DHT.read() function

best is to check the wiring and the pins at least twice :slight_smile:

I am using arduino uno, I replaced DHT22 with DHT11 in the code but nothing happens