The HUMID Humidity / Temperature Sensor Module provides a convenient low-update rate (one sample every two seconds) reading of both temperature and humidity, using just one digital I/O line.
Module Pinout
The module only requires a single line, but it can't be shared or daisy-chained between multiple modules. A separate I/O line is required for each module you wish to connect.

VIN: Connect to 5V on your microcontroller.
DATA: Connect to a digital I/O line on your microcontroller.
GND: Connect to GND (0V) on your microcontroller.
Basic Connections
Connect GND on the module to GND on your Arduino; VIN on the module to 5V on your Arduino; and DATA on the module to one of the digital I/O pins. In this example we've used D2.

Reading Values
Communicating with the Humidity / Temperature Sensor Module requires a driver for the DHT22 sensor. The simplest way to install the driver is to download the DHT library from the Freetronics repository on GitHub and install it in your Arduino IDE. Visit the following repository in your browser, and look for the "ZIP" button near the top left to download it as a ZIP archive:
https://github.com/freetronics/DHT-sensor-library
Uncompress the archive and rename the folder to "DHT", then move it into your sketchbook/libraries/ folder. Restart the IDE, and you will now have a new entry in the examples menu at File -> Examples -> DHT -> DHTtester. Open that example in the Arduino IDE, compile it, and upload it to your Arduino. Open the serial console in the IDE and set it to 38400bps to match the setting in the example sketch.





