The DHT22 is a low-cost sensor to acquire ambient temperature and humidity in a digital way. It uses a capacitive humidity sensor and a thermistor to measure the temperature and humidity of the air and transmits it digitally on a serial bus. The data is updated every 2 seconds.
The connection of this piezo is very simple, it is enough to connect the first pin to the left to the power supply (3V to 5V), the central pine on an arduino pin declared as input (INPUT) and the right pin to the ground GND).
This sensor is similar to the DHT11 but it has a higher accuracy and measuring range, however it is a little more expensive and a bit bigger.
Characteristics
Low cost.
Power supply: 3 to 5V power and data
Power consumption: 2.5mA max during conversion
Moisture measurement range: from 0% to 100% with an accuracy of 2-5%
Temperature range: -40 ° C to 80 ° C with accuracy ± 0.5 ° C
Sampling at 0.5 Hz (every 2 seconds)
Dimension: 27mm x 59mm x 13.5mm (1.05 “x 2.32” x 0.53 “)
4 pins, 0.1 “spacing