Go Down

Topic: DHT11 too high values (Read 1 time) previous topic - next topic

joyce973

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

RIDDICK

the dog ate the sensor?  :D

are all readings wrong?
or just <10%?

r u sure u connected the wires right?
-Arne

joyce973

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

Riva

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
Quote
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)

robtillaart

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.

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

joyce973

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

Riva

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

Go Up