Computers, Development Boards & Shields
Educational & Robotics Kits
Electronic Sensors
Motors & Controllers
Communication & Display
Electronic Components
Soldering & Lab Tools

How do I read humidity with the DHT22?

I have a DHT22 and I’m successfully read the temp. However, I was not able to find an example of how to read humidity.

1 Answer


If you look in the example code included with the DHT22 library (dht22_functions.ino) you can read Humidity by calling the following commands:;
Serial.println((float)DHT22.humidity, DEC);

Let me know if you still need any help.

Joseph Dattilo

Your Answer

No comments yet.

Leave a Reply