Measuring Temperature and Humidity with Raspberry Pi

After I played with OLED display with Raspberry PI, the next logical step is to display more useful information on it.

DHT22_AM2302

I bought a sensor DHT22_AM2302 which is a Digital Temperature Humidity Sensor with serial interface.

The device measures both temperature and humidity and you get the values in single poll.

Connected GND to Rpi’s GND,

Vcc to Rpi GPIO- pin 2 and finally

Data to GPIO pin 8 (GPIO 14)

rpi_T_H

Little bit of coding in Python and using nice libraries written by Tony DiCola for Adafruit Industries and here is the result.

Maybe I should buy one of BMP085 Digital Barometric Pressure Sensor and hook it up as well.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>