Pages: [1]   Go Down
Author Topic: Need help with programming humidity sensor  (Read 646 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, ...

I need a simple code for a humidity sensor that makes the sensor sense humidity and reports the serial monitor.

the sensor is in this website
 http://www.sparkfun.com/products/10167
it has an example code(http://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.doc) , which never compiles with me

Thank you,

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you need a library for this you can use this one:

https://github.com/nethoncho/Arduino-DHT22

Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 638
Posts: 50304
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
which never compiles with me
You are obviously not chanting the proper prayers while compiling. Perhaps if you posted some code AND the (exact) errors, we could help you learn the proper prayer to chant.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 223
Posts: 13870
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 DHT22 works fine with my lib and sample code, see playground - http://arduino.cc/playground/Main/DHTLib -

special attention to have a delay between reads ~2 secs
Logged

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: