Pages: [1]   Go Down
Author Topic: DHT11 too high values  (Read 832 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Brunsbüttel, SH, F.Rep.GERM
Offline Offline
God Member
*****
Karma: 4
Posts: 596
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

the dog ate the sensor?  smiley-grin

are all readings wrong?
or just <10%?

r u sure u connected the wires right?
Logged

-Arne

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Norfolk UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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)
Logged

Handle every stressful situation like a dog. If you can't eat it or hump it. Piss on it and walk away.

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12465
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Norfolk UK
Offline Offline
Edison Member
*
Karma: 52
Posts: 2214
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Handle every stressful situation like a dog. If you can't eat it or hump it. Piss on it and walk away.

Pages: [1]   Go Up
Jump to: