The AHT10 High Precision Digital Temperature And Humidity Measurement Module is a new generation of temperature and humidity sensors, sets a new standard in size and intelligence: it is embedded in a dual-row flat leadless SMD package for reflow soldering with a 4 x 5mm bottom and a height of 1.6mm. The sensor outputs a calibrated digital signal in standard I 2C format.
The AHT10 is equipped with a newly designed ASIC-specific chip, an improved MEMS semiconductor capacitive humidity sensing element and a standard on-chip temperature sensing element. Its performance has been greatly improved beyond the reliability level of previous generation sensors. The first generation of temperature and humidity sensors have been improved to make them more stable in harsh environments.
This sensor gives a calibrated digital signal outputs in standard I2C format. The AHT10 is equipped with a newly designed ASIC-specific chip, an improved MEMS semiconductor capacitive humidity sensing element and a standard on-chip temperature sensing element. Its performance has been greatly improved beyond the reliability level of previous generation sensors
Specifications and Features:
Interface type: I2C
Working voltage: 1.8 – 6.0 V
Interface size: 4*2.54mm pitch
Humidity accuracy: typical ± 2%
Humidity resolution: 0.024%
Temperature accuracy: typical ± 0.3 ° C
Temperature resolution: Typical 0.01 °C
Working temperature: -40°C–85°C
Package Includes:
1 x Digital Temperature and Humidity Sensor
Pin Connections Table 1
Board Sensor Pin Connection AHT10 VCC/GND/SDA/SCL 3.3-5V / GND / board SDA / board SCL
AHT10 High Precision Digital Temperature And Humidity Measurement Module - Arduino Uno
AHT10 High Precision Digital Temperature And Humidity Measurement Module - Arduino Nano
AHT10 High Precision Digital Temperature And Humidity Measurement Module - Arduino Mega
AHT10 High Precision Digital Temperature And Humidity Measurement Module - ESP32
AHT10 High Precision Digital Temperature And Humidity Measurement Module - ESP8266
AHT10 High Precision Digital Temperature And Humidity Measurement Module - STM32
AHT10 High Precision Digital Temperature And Humidity Measurement Module - Raspberry Pi Pico
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Arduino Uno: A4=SDA, A5=SCL. VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Arduino Nano: A4=SDA, A5=SCL. VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Arduino Mega: D20=SDA, D21=SCL. VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for ESP32: GPIO21=SDA, GPIO22=SCL. VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for ESP8266: D2(GPIO4)=SDA, D1(GPIO5)=SCL. VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for STM32: PB7=SDA, PB6=SCL (Blue Pill / F103C8). VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
1 //ekostra.com
2 //electronics store in egypt
3 //+201008896258
4
5 // I2C wiring for Raspberry Pi Pico: GPIO4=SDA, GPIO5=SCL. VCC->3. 3V or 5V per module label, GND->GND.
6 #include <Wire.h>
7 #include <Adafruit_AHTX0.h> // works for AHT10/AHT20/AHT25 - same driver family
8
9 Adafruit_AHTX0 aht;
10
11 void setup () {
12 Serial.begin (115200 );
13 Wire.begin();
14 if (!aht.begin()) {
15 Serial.println ("AHT sensor not found - check wiring!");
16 while (1 ) delay (10 );
17 }
18 }
19
20 void loop () {
21 sensors_event_t humidity, temp;
22 aht.getEvent(&humidity, &temp);
23
24 Serial.print ("Temperature: "); Serial.print (temp.temperature); Serial.print (" C ");
25 Serial.print ("Humidity: "); Serial.print (humidity.relative_humidity); Serial.println (" %");
26
27 delay (1000 );
28 }
Project Notes: I2C temperature + humidity sensor, AHTx0 family driver.