The AHT10 is a high-precision, fully calibrated, digital temperature and humidity sensor. It features a standard I2C interface and is known for its low power consumption and high accuracy. This sensor is ideal for applications requiring precise environmental monitoring, such as HVAC systems, weather stations, and smart home devices.
Parameter | Value |
---|---|
Supply Voltage | 2.0V to 5.5V |
Operating Current | 0.25mA (measuring) |
Standby Current | 0.01µA |
Temperature Range | -40°C to 85°C |
Temperature Accuracy | ±0.3°C |
Humidity Range | 0% to 100% RH |
Humidity Accuracy | ±2% RH |
Interface | I2C |
I2C Address | 0x38 |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (2.0V to 5.5V) |
2 | GND | Ground |
3 | SCL | I2C clock line |
4 | SDA | I2C data line |
#include <Wire.h>
#include <AHT10.h>
AHT10 aht10;
void setup() {
Serial.begin(9600);
Wire.begin();
if (aht10.begin()) {
Serial.println("AHT10 initialized successfully");
} else {
Serial.println("AHT10 initialization failed");
}
}
void loop() {
float temperature = aht10.readTemperature();
float humidity = aht10.readHumidity();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" %");
delay(2000); // Wait for 2 seconds before the next reading
}
Sensor Not Initializing:
Inaccurate Readings:
I2C Communication Failure:
Q: What is the default I2C address of the AHT10?
Q: Can the AHT10 operate at 5V?
Q: How often should I take readings from the AHT10?
This documentation provides a comprehensive guide to using the AHT10 temperature and humidity sensor. Whether you are a beginner or an experienced user, following these instructions and best practices will help you achieve accurate and reliable environmental monitoring.