blog

AM2320 Temperature & Humidity Sensor: Datasheet, Wiring & Application Guide

AM2320 (3)(1)

When you need to accurately measure indoor temperature and humidity, check the temperature and humidity of the soil environment for smart flower pots, or add environmental data collection functions to a weather station, the AM2320 temperature and humidity sensor is your reliable helper. It is small in size, outputs digital signals, and is waterproof and moisture-proof, making it a common accessory for DIY smart devices and industrial environment monitoring. Today, we will disassemble this sensor, taking you from its working principle to practical operations, so you can learn how to accurately collect temperature and humidity data.

What is the AM2320? — A “Miniature Sensor” for Digital Temperature and Humidity

The AM2320 temperature and humidity sensor is an integrated temperature and humidity sensor with calibrated digital signal output. It uses a high-precision capacitive humidity-sensing element and an NTC temperature-measuring element, and fuses the data of the two through a patented temperature and humidity compensation algorithm. Its core advantage is converting analog signals into I2C digital protocol output, enabling direct communication with microcontrollers or microprocessors, and eliminating the need for the A/D conversion circuit required by traditional sensors.

This design not only simplifies the design of peripheral circuits but also improves the typical measurement accuracy to ±2% RH (humidity) and ±0.5°C (temperature), with a response time shortened to less than 5s. The sensor housing adopts an ultrasonic sealing process, reaching an IP65 protection level, allowing it to work stably for a long time in high-humidity environments with 85% RH. It is especially suitable for scenarios that require long-term deployment, such as smart homes and agricultural greenhouses.

AM2320 (1)

Features and Advantages of the AM2320 temperature and Humidity Sensor

  • Ultra-small size:The module size is only about20×15mm, which can be easily embedded in small devices (such as smart watches and miniature monitors).
  • Digital output: AdoptsI2C bus communication, no need for analog signal conversion, ensuring more accurate data.
  • Wide range adaptation:Humidity measurement range is 0-100% RH,and temperature measurement range is –40°C ~ 80°C.
  • Waterproof and moisture-proof:The sensor probe is treated for moisture resistance and can be in contact with humid environments (such as bathrooms and flower pot soil) for a short time.

Core Advantage: More User-friendly Than Traditional Analog Sensors

Compared with ordinary analog temperature and humidity sensors, its “accuracy and convenience” are more prominent:

  • High accuracy: Humidity accuracy is±2% RH, and temperature accuracy is±0.5°C, meeting the needs of accurate monitoring in most scenarios.
  • Strong anti-interference ability:Digital signal transmission is not easily affected by electromagnetic interference (analog signals are easily interfered by wires).
  • Simple wiring: Only 4 wires (or 3 wires) are needed for communication, allowing beginners to get started quickly.
  • Low power consumption: The standby current is only0.1μA, suitable for battery-powered portable devices.

AM2320 Structure and Pinout: A “Full-Featured Interface” in a Compact Package

Pin IdentificationFunction DescriptionCommon Scenarios
VCCPositive power supplyConnect to 3.3V or 5V DC power supply (the module is compatible with a wide voltage range)
GNDNegative power supplyConnect to the GND of the development board/power supply (common ground ensures stable signals)
SDAI2C data lineConnect to the I2C data pin of the microcontroller (like Arduino A4)
SCLI2C clock lineConnect to the I2C clock pin of the microcontroller (like Arduino A5)
pins

How Does the AM2320 “Sense Temperature and Humidity”? — The Synergy of Dual Sensors

The working principle and data collection logic of the AM2320 temperature and humidity sensor is “independent detection by dual sensors + integrated digital signal output”:

1.Humidity detection: There is a special element in the sensor that is very sensitive to humidity. When the environmental humidity changes, the capacitance value of this element changes accordingly. The sensor converts this capacitance change into an electrical signal, and then converts it into digital humidity data through an internal circuit.

2.Temperature detection: The sensor also contains a thermistor, which is very sensitive to temperature. When the temperature changes, the resistance value of the thermistor changes linearly. The internal circuit converts this resistance change into digital temperature data.

3.Data storage and reading: The digitized temperature and humidity data are stored in the sensor’s register. The microcontroller can read the digital data in the register by sending commands through the I2C bus, without the need for additional calibration.

AM2320

Core Parameters of AM2320: Hardware Assurance for Precise Monitoring

ParameterSpecification
Supply voltage3.3V to 5.5V
Current consumptionApproximately 0.95mA during measurement
Approximately 10μA (in sleep mode)
Humidity range0 to 100% relative humidity
Humidity accuracyWithin the range of 20% to 80% relative humidity, the error is ±3%
Temperature range-40°C to +80°C
Temperature accuracyDeviation of ±0.5°C at 25°C
Sampling rate0.5 Hz (read once every two seconds)
Response timeHumidity ≤ 3s, Temperature ≤ 1s

AM2320 temperature and Humidity Sensor datasheet

We provide the datasheet of the AM2320 temperature and humidity sensor for your reference:

AM2320 temperature and Humidity Sensor datasheet

Connect the AM2320 to the Arduino

Taking “Arduino + AM2320 to realize real-time temperature and humidity monitoring (serial port display)” as an example, the operation only requires 3 steps:

  1. Wiring steps (Arduino Uno)
AM2320 PinArduino PinDescription
VCC5VModule power supply
GNDGNDCommon ground
SDAA4I2C data line
SCLA5I2C clock line
  1. Code example (requires Adafruit_AM2320 library installation)
				
					#include <Wire.h>
#include <Adafruit_AM2320.h>

Adafruit_AM2320 am2320 = Adafruit_AM2320();

void setup() {
  Serial.begin(9600);
  // Initialize the sensor
  if (!am2320.begin()) {
    Serial.println("AM2320 initialization failed! Please check the wiring");
    while (1);
  }
}

void loop() {
  // Read temperature and humidity data
  float humidity = am2320.readHumidity();
  float temperature = am2320.readTemperature();

  // Print data to serial monitor
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print("%RH | Temperature: ");
  Serial.print(temperature);
  Serial.println("°C");

  delay(2000); // Collect data every 2 seconds
}
				
			
  1. Debugging Notes
  • Anti-reverse wiring:VCC and GND must not be connected in reverse, otherwise the sensor will be burned.
  • Avoid frequent reading: TheAM2320requires an interval of ≥2s after each reading (frequent reading will lead to data errors).
  • Moisture-proof protection:If used in a high-humidity environment (such as a bathroom), cover the sensor with a waterproof and breathable membrane to prevent moisture from entering the internal circuit.
  • Address conflict:If there are multiple devices on the I2C bus, confirm that the default address of the AM2320 (0x5C)does not overlap with other devices.

AM2320's Expanded Applications: “Small Sensors”, “Big Impact”

With the characteristics of “small size + high accuracy”, the AM2320 has applications covering various scenarios:

  • Smart home: Monitor the temperature and humidity in the bedroom, and link with air conditioners/humidifiers for automatic adjustment.
  • Agricultural planting:Install sensors in smart flower pots to monitor soil temperature and humidity, and realize automatic watering/ventilation.
  • Industrial monitoring:Detect the temperature and humidity in warehouses and workshops to prevent goods from being damaged by moisture/high temperature.
  • Portable devices: Embed in outdoor camping lights to display environmental temperature and humidity in real time.
  • DIY weather station:Match with ESP32 to upload temperature and humidity data to the cloud for personal weather forecasting.

Summary: AM2320—The Cost-Effective Choice for Environmental Awareness

The AM2320 is not a “high-precision sensor for professional weather stations”, but it is a cost-effective choice for “temperature and humidity collection in most scenarios”. With its ultra-small size, digital output, and low power consumption, it allows DIY enthusiasts and developers to realize “accurate collection of environmental data” at low cost. It is a “basic sensing module” for smart devices and monitoring systems.

If you are interested in the AM2320 after reading this, come and check it out!

Leave a Reply

Your email address will not be published. Required fields are marked *