Table of Contents

LamaPLC: AHT10 Modul

AHT10 Modul The AHT10 is an affordable, high-precision digital sensor module that measures both temperature and humidity. It uses a standard I²C interface for communication and is commonly used with microcontrollers such as Arduino and ESP32.

Key Specifications

Notable Features

Pinout Configuration

PinNameFunctionTypical Connection
1VIN / VCCPower Supply (1.8V to 6.0V)3.3V or 5V pin
2GNDGroundGND pin
3SCLI²C Serial ClockSCL / A5 (Arduino Uno)
4SDAI²C Serial DataSDA / A4 (Arduino Uno)

Wiring & Integration Details

Arduino example code

To use the AHT10 sensor with an Arduino, the most common and reliable method is using the Adafruit AHTX0 library.

This script initializes the sensor and prints temperature and humidity data to the Serial Monitor every 2 seconds.

#include <Wire.h>
#include <Adafruit_AHTX0.h>
 
Adafruit_AHTX0 aht;
 
void setup() {
  Serial.begin(115200);
  Serial.println("AHT10 Sensor Test");
 
  // Initialize I2C and the sensor
  if (!aht.begin()) {
    Serial.println("Could not find AHT10. Check wiring!");
    while (1) delay(10);
  }
  Serial.println("AHT10 found and initialized.");
}
 
void loop() {
  sensors_event_t humidity, temp;
 
  // Get new sensor events with the latest data
  aht.getEvent(&humidity, &temp); 
 
  // Print results to Serial Monitor
  Serial.print("Temperature: ");
  Serial.print(temp.temperature);
  Serial.println(" °C");
 
  Serial.print("Humidity: ");
  Serial.print(humidity.relative_humidity);
  Serial.println(" % rH");
 
  delay(2000); // Wait 2 seconds between readings
}

Implementation Notes

I²C topics on lamaPLC

PageDateTags
2026/04/23 21:51, , , , , , ,
2025/09/23 21:25, , , , , ,
2026/04/15 19:34, , , , , , ,
2026/03/22 03:14, , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/03/28 23:50, , , , , , ,
2026/04/12 00:34, , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , ,
2026/03/22 00:08, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2025/05/31 23:32, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2025/11/22 00:07, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2023/07/01 17:29, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
2026/03/22 01:44, , , , , , , , ,
2026/04/23 21:52, , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , ,
2026/04/23 21:51, , , ,
2026/04/23 21:52, , , , , , , , , , , , , , , , , , , , , , , , ,
2026/04/11 19:54, , , , , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/02/14 18:27, , , , , , , , , ,
2026/04/23 21:52, , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/15 19:41, , , , , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , , , , ,
2026/02/14 23:47, , , ,
2026/02/14 23:51, , , , , ,
2026/02/14 18:26, , , ,
2026/04/23 21:52, , , , , , , , , , , , ,
2026/04/23 21:52, , , , , , , , , , ,
2026/04/23 21:52, , , , , , , ,
2026/03/05 21:19, , , , , , , , , , , , , , , , ,
2026/02/14 18:27, , , , , , ,




This page has been accessed for: Today: 2, Until now: 11