RHT03 (DHT22) Humidity and Temperature Sensor Hookup Guide

Pages
Contributors: bboyho
Favorited Favorite 4

Arduino Example

After installing the library, open the example from the Arduino IDE by clicking File > Examples > SparkFun RHT03 Arduino Library > RHT03-Example-Serial. Select the board that you are using (if you are using the RedBoard with the ATmega328P, select Arduino/Genuino Uno) and COM port that the board enumerated on and hit upload.

Arduino IDE with Upload Button Highlighted

Open the serial monitor at 9600 baud to view the output. You should see the relative humidity and temperature in °F and °C. Try blowing some air at the sensor. The sensor should react to the water vapor contained in the exhaled air.

Example Output Relative Humidity and Temeprature