====== AM2302 DHT22 Sensor ====== Small 3-wire **temperature and humidity** sensor {{composants:am2302-dht22.jpg?300}} ===== Specifications ===== //(Source : [[https://learn.adafruit.com/dht/overview|Adafruit]])// *Low cost *3 to 5V power and I/O *2.5mA max current use during conversion (while requesting data) *Good for 0-100% humidity readings with 2-5% accuracy *Good for -40 to 80°C temperature readings ±0.5°C accuracy *No more than 0.5 Hz sampling rate (once every 2 seconds) *Body size 15.1mm x 25mm x 7.7mm *4 pins with 0.1" spacing ===== Usage ===== You can use the Adafruit DHT library. {{composants:dht22wiring.jpg}} DHT22 and AM2302 often have a pullup already inside, but it doesn't hurt to add another one ! ===== Demo ===== Use the basic example from Adafruit library ===== Ressources ===== *[[https://learn.adafruit.com/dht/overview|Adafruit]]