The DHT22 sensor is ideal for reading the temperature or humidity of your surroundings. Before you can use the DHT22 and its chip inside that does analogue to digital conversion, it is important to make the right connections. 

In this guide,  learn to connect a DHT22 to a Raspberry Pi on a breadboard.

Complete this guide to start prototyping with the DHT22 sensor.
    • The DHT22 is a Temperature and Humidity Sensor. The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed).

    • In this guide we'll use a DHT22 breakout board  (DF-SEN0137) from DFRobot.  This breakout board is handy because it has all the passive components built onto it (hear we don't need any other resistors in our circuit).

    • Connect the Wire to the DHT22 (it can only go in one way).

    • Connect a Black, Red and Green Jumper Wire to the Cable (matching the colour of the Cable's wires)

    • Connect the Red Jumper to J2 to access the Raspberry Pi's 5V Pin.

    • Connect the Black Jumper to J3 to Ground

    • Connect the Green Jumper to tie point J20 to access the GPIO21.