composants:am2302dht22

AM2302 DHT22 Sensor

Small 3-wire temperature and humidity sensor

am2302-dht22.jpg

(Source : 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

You can use the Adafruit DHT library.

dht22wiring.jpg

DHT22 and AM2302 often have a pullup already inside, but it doesn't hurt to add another one !

Use the basic example from Adafruit library

  • composants/am2302dht22.txt
  • Last modified: 2020/06/01 16:35
  • by 127.0.0.1