2. Reading Humidity and Temperature using the DHT22 sensor

A) Wiring

          First of all you'll need to wire the system just like the one in figure 1. We have two sensors, so we will be using two data pins on the Arduino. That's pins number 6 and 7. Also pay attention to polarity when powering the sensors. Pin 1 is VCC, Pin 2 is the Data pin, Pin 3 is NC and Pin 4 is GND.

Figure 1

B) Programming

             In order to use the test application (download here), you'll need to download the Arduino IDE (download here) and the DHT library (download here). After installing the library to the Arduino install folder:  \Program Files\Arduino\libraries , open up the application (dht22_test.ino) and Upload it to the device. Once that's done, open up the Serial Monitor to see the temperature and humidity readings from each sensor.

Zircon - This is a contributing Drupal Theme
WeebPal