AM2301 Digital Temperature & Humidity Sensor DHT21
Product Overview
The AM2301 Digital Temperature & Humidity Sensor DHT21 is a calibrated wired sensor for measuring ambient temperature and relative humidity. It features an approximately 25cm 3-wire cable with VDD, DATA and GND connections and provides digital output for compatible Arduino, ESP32, STM32, IoT, environmental monitoring and automation projects.
Description
The AM2301 Digital Temperature & Humidity Sensor, commonly associated with the DHT21 designation, combines temperature and relative-humidity measurement in a compact enclosed wired sensor.
Unlike a bare PCB sensor module, this version features an approximately 25cm cable with three external wires, allowing the sensing body to be positioned away from the main microcontroller or control PCB.
The AM2301 integrates temperature and humidity sensing with internal signal processing and provides calibrated measurement data through a digital single-bus interface.
Its combination of digital output, wired construction and dual environmental measurement makes it useful for weather stations, environmental monitoring, greenhouse systems, IoT devices, smart-home projects, data logging and automation.
Temperature & Humidity Measurement
The AM2301 measures two important environmental parameters:
Temperature
Relative Humidity
Manufacturer documentation specifies:
Temperature Range: -40°C to +80°C
Humidity Range: 0–99.9% RH
Resolution: 0.1°C / 0.1% RH
This broad measurement capability makes the AM2301 suitable for many indoor and appropriately protected environmental-monitoring applications.
Digital Single-Bus Interface
The AM2301 provides measurement data through a digital single-bus interface.
Instead of providing separate analog outputs for temperature and humidity, the sensor transmits digital measurement data to a compatible microcontroller.
This simplifies integration into embedded systems and allows both environmental measurements to be obtained through one DATA connection.
25cm Wired Sensor Design
This Chip.pk variant features an approximately 25cm cable.
The cable allows the sensing body to be placed separately from the main controller board, which can be useful when the measurement location and electronics location are different.
Typical examples include:
- Electronics enclosures
- Indoor environmental monitoring
- Greenhouse monitoring
- Weather stations
- IoT sensor nodes
- Automation systems
- Storage-area monitoring
- Data logging systems
3-Wire Connection
The actual connection diagram for this product shows three external wires:
| Wire Color | Connection | Function |
|---|---|---|
| Red | VDD | Positive Power Supply |
| Yellow | SDA / DATA | Digital Data Signal |
| Black | GND | Ground |
Therefore:
Red → VDD
Yellow → DATA
Black → GND
The sensor package also identifies an internal NC (Not Connected) position, but it is not used as one of the three external wired connections.
Important Connection Note
Always verify the wire colors on the actual sensor before applying power. Reversing VDD and GND may damage the sensor.
Arduino Connection
For a typical compatible Arduino setup:
Red (VDD) → 5V
Yellow (DATA) → Digital GPIO
Black (GND) → GND
For example:
AM2301 Red → Arduino 5V
AM2301 Yellow → Arduino D2
AM2301 Black → Arduino GND
D2 is only an example. A different suitable digital pin can be used when the software is configured accordingly.
ESP32 Connection
For a typical compatible ESP32 project:
Red (VDD) → 3.3V
Yellow (DATA) → Suitable GPIO
Black (GND) → GND
The selected GPIO must also be correctly defined in the software.
This enables projects such as:
AM2301 → ESP32 → Wi-Fi → Dashboard / Server / Cloud
for remote environmental monitoring and IoT applications.
Microcontroller Compatibility
With appropriate electrical connections and software support, the AM2301 can be integrated with platforms such as:
- Arduino-compatible boards
- ESP32
- ESP8266
- STM32
- Raspberry Pi GPIO projects
- Other compatible microcontrollers
Arduino should remain a compatibility/application keyword, not part of the product H1, because the AM2301 is not exclusively an Arduino sensor.
AM2301 / DHT21
The AM2301 is commonly associated with the DHT21 designation.
Arduino Projects
The AM2301 can be used in suitable Arduino projects such as:
- Temperature monitors
- Humidity monitors
- Digital thermometers/hygrometers
- Weather stations
- Greenhouse monitoring
- Room climate monitoring
- Data loggers
- Home automation
- Environmental monitoring
A compatible library/software implementation and correct wiring are required.
ESP32 & IoT Applications
The sensor is also useful for ESP32 and ESP8266-based IoT projects.
Temperature and humidity measurements can be collected by the controller and then used for:
- Web dashboards
- Remote monitoring
- Data logging
- Smart-home automation
- Environmental alerts
- Cloud-connected IoT projects
This makes the AM2301 useful beyond simple standalone Arduino projects.
Environmental Monitoring
Because the AM2301 measures both temperature and relative humidity, it is useful in applications including:
- Indoor climate monitoring
- Weather stations
- Greenhouses
- Home automation
- IoT environmental monitoring
- Electronics cabinet monitoring
- HVAC monitoring prototypes
- Storage monitoring
- Laboratory projects
- Environmental data logging
- Smart monitoring systems
- Educational electronics
For outdoor, condensation-prone, industrial or safety-critical applications, installation conditions and sensor limitations should be evaluated separately.
Key Features
- AM2301 digital temperature and humidity sensor
- Commonly associated with DHT21
- Temperature and relative-humidity measurement
- Digital single-bus communication
- Approx. 25cm cable length
- 3-wire external connection
- Red wire for VDD
- Yellow wire for DATA
- Black wire for GND
- Enclosed wired sensor design
- Calibrated digital measurement
- 0.1°C / 0.1% RH resolution
- Wide temperature measurement range
- Wide humidity measurement range
- Suitable for compatible Arduino projects
- ESP32 and ESP8266 integration
- STM32 integration
- IoT environmental monitoring
- Weather station applications
- Greenhouse monitoring
- Automation and data logging
Technical Specifications
| Specification | Details |
|---|---|
| Product | AM2301 Temperature & Humidity Sensor |
| Alternate Designation | DHT21 |
| Sensor Type | Digital Temperature & Humidity |
| Construction | Wired / Enclosed Sensor |
| Cable Length | Approx. 25cm |
| External Wires | 3 |
| Communication | Digital Single-Bus |
| Temperature Range | -40°C to +80°C |
| Humidity Range | 0–99.9% RH |
| Temperature Resolution | 0.1°C |
| Humidity Resolution | 0.1% RH |
| Power Connection | VDD |
| Data Connection | SDA / DATA |
| Ground Connection | GND |
| VDD Wire | Red |
| DATA Wire | Yellow |
| GND Wire | Black |
| Humidity Sensing | Capacitive |
| Main Application | Environmental Monitoring |
Quick Connection Table
| AM2301 | Wire | Controller |
|---|---|---|
| VDD | Red | Power |
| DATA | Yellow | Digital GPIO |
| GND | Black | Ground |
This table is worth keeping in the Shopify description because customers can immediately identify the three connections.
Why Choose the AM2301?
The AM2301 combines:
Temperature sensing + Humidity sensing + Digital output + 25cm wired installation
in one compact sensor.
The wired design is especially convenient when the sensing location needs to be separated from the main controller board.
For example, a controller can remain inside an electronics enclosure while the AM2301 sensing body is positioned closer to the area being monitored.
AM2301 vs DHT11
The AM2301 provides a broader temperature and humidity measurement capability than basic DHT11-class sensors.
A DHT11 may still be sufficient for inexpensive beginner applications, while the AM2301 is better suited when a project requires a broader measurement range and a wired sensor format.
Applications
- Temperature monitoring
- Humidity monitoring
- Environmental monitoring
- Weather stations
- Greenhouse monitoring
- Home automation
- IoT projects
- Arduino projects
- ESP32 projects
- ESP8266 projects
- STM32 projects
- Data logging
- Smart monitoring
- Electronics enclosure monitoring
- Educational electronics
- Embedded systems
Ideal For
Students & Beginners — learning digital environmental sensing.
Arduino Users — building temperature and humidity monitoring systems.
ESP32 / IoT Developers — creating connected environmental sensors.
Makers — weather stations, greenhouse and smart-home projects.
Engineers — prototyping environmental monitoring and automation systems.
Package Includes
1 × AM2301 Digital Temperature & Humidity Sensor DHT21 with approx. 25cm cable
AM2301 Sensor in Pakistan
The AM2301 Digital Temperature & Humidity Sensor DHT21 provides a convenient wired solution for temperature and relative-humidity measurement. Its approximately 25cm 3-wire cable makes it suitable for Arduino, ESP32, IoT, weather monitoring, greenhouse and automation projects.
Check Chip.pk for the latest AM2301 sensor price in Pakistan and current stock availability.
FAQs
1. What is the AM2301 sensor?
The AM2301 is a digital temperature and relative-humidity sensor, commonly associated with the DHT21 designation. It provides calibrated digital measurements through a single-bus interface.
2. What does the AM2301 measure?
It measures two environmental parameters:
Temperature and Relative Humidity (RH).
3. What is the temperature range of AM2301?
The AM2301 has a specified temperature measurement range of approximately -40°C to +80°C.
4. What is the humidity range of AM2301?
The specified humidity measurement range is 0–99.9% RH.
5. What is the resolution of the AM2301?
The sensor provides 0.1°C temperature resolution and 0.1% RH humidity resolution.
6. How long is the cable on this AM2301 sensor?
The Chip.pk variant has an approximately 25cm cable with three external wires.
7. What are the AM2301 wire connections?
For the product configuration you provided:
Red → VDD / Power
Yellow → DATA
Black → GND
The sensor diagram also shows an internal NC (Not Connected) connection, which is not used as one of the three external wires.
8. Can AM2301 be used with Arduino?
Yes. The AM2301 can be interfaced with compatible Arduino boards using a digital GPIO and suitable software/library support.
9. How do I connect AM2301 to Arduino?
A typical connection is:
Red → 5V
Yellow → Digital GPIO, such as D2
Black → GND
D2 is only an example; another suitable digital GPIO can be selected in the software.
10. Can AM2301 be used with ESP32?
Yes. It can be integrated with an ESP32 for IoT and wireless environmental-monitoring projects using an appropriate GPIO, power connection and compatible software implementation.
11. Is AM2301 the same as DHT21?
AM2301 is commonly identified/marketed as DHT21, so DHT21 is useful secondary terminology for this product.
12. Is AM2301 the same as DHT22?
No. AM2301/DHT21 should not be confused with AM2302/DHT22. They should be treated as separate product designations.
13. Can AM2301 be used for a weather station?
Yes. Measuring both temperature and relative humidity makes it suitable for weather station and environmental-monitoring projects, provided the installation protects the sensor appropriately for the intended environment.
14. Is AM2301 suitable for greenhouse monitoring?
Yes. It can be used to monitor temperature and humidity in greenhouse projects when installed within its environmental and electrical operating requirements.
15. Can AM2301 be used for IoT projects?
Yes. It can be connected to compatible controllers such as ESP32 or ESP8266 to collect temperature and humidity data for dashboards, data logging, alerts or remote monitoring.
16. Does AM2301 provide analog output?
No. The AM2301 provides digital measurement data rather than a conventional analog temperature/humidity output.
17. What is the price of AM2301 in Pakistan?
The AM2301 sensor price in Pakistan can vary according to stock and market conditions. Check the current Chip.pk product price for the latest information.
18. Where can I buy AM2301 DHT21 in Pakistan?
You can buy the AM2301 Digital Temperature & Humidity Sensor DHT21 from Chip.pk, subject to current stock availability.