Get the temperature and humidity from dht22 sensor(Part 1).

by admin

1.Connect pin 1 (on the left) of the sensor to +5V

*NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1 to 3.3V instead of 5V!

2.Connect pin 2 of the sensor to whatever your DHTPIN is

3. Connect pin 4 (on the right) of the sensor to GROUND

4.Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor(As shown in image )

Leave a Reply

Your email address will not be published.
*
*