Wiring for DHT22

If you got your parts, now it’s time to assemble them together. You will need to put them together in the same exact order as shown. Otherwise you will need to modify the python script a bit. The python script is written for reading input from the pin number 4. If you do not want to use pin number 4, change the code on line 41.

The wiring is shown in the image below. You can use female and male jumper wires to extend the lenght of the wires on DHT22 if you bought one without the cables. If you happen to have a white wire, you can leave it disconnected. The second image is meant for those of you that decided to buy the “shorter” version of DHT22.