AM2301A Digital Temperature Humidity Sensor Module
$7.50
100 or more $5.85
500 or more $4.78
1000 or more $3.95
- Stock: In Stock
- Product Code: SNC004.AM2301A
- Weight: 15.00
AM2301A Digital Temperature Humidity Sensor Module
The AM2301A, also known as DHT21, is a digital temperature and humidity sensor. Here's some information about the AM2301A sensor:
Features:
- Temperature Measurement:
- Accuracy: ±0.3°C
- Measurement Range: -40 to 125°C
- Resolution: 0.1°C
- Humidity Measurement:
- Accuracy: ±2% RH
- Measurement Range: 0 to 100% RH
- Resolution: 0.1% RH
- Power Supply: 3.3V to 5.5V DC
- Output: Digital signal (single-wire communication protocol)
- Dimensions: Typically around 15mm x 12mm x 5.5mm
- Response Time: Typically less than 1 second
- Integration: Easily interfaces with microcontrollers like Arduino, Raspberry Pi, etc.
Description of Features:
- Accuracy: The AM2301A provides ±0.3°C temperature accuracy and ±2% RH humidity accuracy, making it suitable for precise measurements.
- Temperature Range: It operates in a wide temperature range from -40 to 125°C, allowing flexibility in various applications.
- Humidity Measurement: Capable of measuring humidity from 0% to 100% RH with high accuracy and resolution.
- Power Supply: Supports a wide range of power supply voltages, ensuring compatibility with different systems and applications.
- Response Time: Responds quickly to changes, typically in less than 1 second, which is ideal for applications requiring rapid data acquisition.
Applications:
The AM2301A sensor is commonly used in weather monitoring, HVAC systems, industrial automation, and consumer electronics for monitoring temperature and humidity levels. It offers reliable performance with high accuracy and low power consumption, making it suitable for a wide range of applications.
Example Arduino Code:
Here's a basic example of how to use the AM2301A (DHT21) sensor with an Arduino:
#include #define DHTPIN 2 // Digital pin connected to the sensor #define DHTTYPE DHT21 // AM2301 (DHT21) sensor type DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); dht.begin(); } void loop() { delay(2000); // Delay between readings float temperature = dht.readTemperature(); // Read temperature in Celsius float humidity = dht.readHumidity(); // Read humidity // Check if any reads failed and exit early (to try again) if (isnan(temperature) || isnan(humidity)) { Serial.println("Failed to read from sensor!"); return; } Serial.print("Temperature: "); Serial.print(temperature); Serial.print(" °C Humidity: "); Serial.print(humidity); Serial.println(" %"); }
This code initializes the DHT library, reads temperature and humidity data from the AM2301A sensor connected to pin 2, and prints the values to the Serial Monitor every 2 seconds. Adjust the DHTPIN
and DHTTYPE
as needed based on your setup.