AM2302 humidity-sensitive capacitance digital temperature and humidity module is
a have already calibrated digital composite signal output of the temperature and humidity sensor.
It dedicated digital module acquisition technology and the temperature and humidity sensor technology,
ensure that the product has a very high reliability and excellent long-term stability.
Includes a capacitive moisture sensor element and a high precision temperature measuring element,
and connected to a high-performance 8-bit microcontroller.
So the product has excellent quality, super fast response, strong anti-interference ability, extremely high performance-price ratio.
Every sensor in extremely precise humidity calibration laboratory calibration.
Calibration coefficient in the form of a program stored in the microcontroller, sensors inside in the process of detecting signal processing to invoke the calibration coefficient.
Standard single bus interface, make the system integration becomes simple and fast.
Super small volume, low power consumption, signal transmission distance of 20 meters,
making it a all kinds of application of the best choice for even the most demanding applications.
Products for 3 fuses (single bus interface) connection is convenient.
Specifications:
- Temperature
- Resolution : 0.1°C
- Accuracy : ±0.5°C
- Measuring range : -40°C ~ 80°C
- Humidity
- Resolution : 0.1%RH
- Accuracy : ±2%RH (25°C)
- Measuring range : 0%RH ~ 99.9%RH
- Operating voltage : 3.3V ~ 5.5 V
- Recommended storage condition
- Temperature : 10°C ~40°C
- Humidity : 60%RH or below
Pintout Connection:
Testing Source Code:
#include "DHT.h" #define DHTPIN 2 // what pin we're connected to #define DHTTYPE DHT22 // DHT 22 (AM2302) #define fan 4 int maxHum = 60; int maxTemp = 40; DHT dht(DHTPIN, DHTTYPE); void setup() { pinMode(fan, OUTPUT); Serial.begin(9600); dht.begin(); } void loop() { // Wait a few seconds between measurements. delay(2000); // 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.readHumidity(); // Read temperature as Celsius float t = dht.readTemperature(); // Check if any reads failed and exit early (to try again). if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return; } if(h > maxHum || t > maxTemp) { digitalWrite(fan, HIGH); } else { digitalWrite(fan, LOW); } Serial.print("Humidity: "); Serial.print(h); Serial.print(" %\t"); Serial.print("Temperature: "); Serial.print(t); Serial.println(" *C "); }
Reviews
There are no reviews yet.