IDUINO for maker’s life User Manual For AM2302 DHT22 temperature and humidity Sensor(ST1173) www.openplatform.
IDUINO for maker’s life Description: AM2302 digital temperature and humidity module is a digital output signal containing a calibrated temperature and humidity combined sensor. It uses a dedicated digital modules capture technology and the temperature and humidity sensor technology to ensure that products with high reliability and excellent long-term stability.
IDUINO for maker’s life Example: Wire connection as below: Vcc------------5V Gnd------------Gnd DAT-------------D2 ***********Code Begin********** #include "DHT.h" #define DHTPIN 2 #define DHTTYPE DHT22 // DHT 22 (AM2302) DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); Serial.println("DHTxx test!"); dht.begin(); } void loop() { // Reading temperature or humidity takes about 250 milliseconds! // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor) float h = dht.
IDUINO for maker’s life Library download: https://github.com/adafruit/DHT-sensor-library https://github.com/adafruit/Adafruit_Sensor Reference: https://learn.adafruit.com/dht www.openplatform.