|
|
C15850Samsung Electro-Mechanics
|
x 1 | |
|
|
C14663 |
x 1 |
AHT20 Temperature & Humidity
Project Description – AHT20 Temperature & Humidity Module
What’s the project about?
This project is about building a reliable and compact temperature & humidity sensing module based on the AHT20 sensor. It is designed to be integrated easily into IoT systems, smart agriculture, weather monitoring, and educational kits.
Why did you decide to make it?
Accurate environmental sensing is essential for many applications, from industrial automation to home automation and STEM education. Existing modules are often expensive or not optimized for easy integration. By designing a custom PCB for the AHT20, we ensure low cost, stability, and compatibility with popular microcontrollers such as Arduino, ESP32, and Raspberry Pi.
How does it work?
The AHT20 digital sensor measures both temperature and relative humidity with high precision.
The sensor communicates via I²C protocol, which makes it simple to interface with most microcontrollers.
Our PCB integrates pull-up resistors and decoupling capacitors for stable communication and noise reduction.
The module provides a plug-and-play solution for developers and students who need environmental data for their projects.
Key Features:
Temperature range: –40°C to +85°C (±0.3°C accuracy).
Humidity range: 0% to 100% RH (±2% accuracy).
Supply voltage: 2.2V – 5.5V.
I²C interface (standard & fast mode).
Compact PCB design for easy prototyping and integration.
Applications:
Weather stations
Smart farming
Greenhouse monitoring
IoT devices
Educational development kits
#include <Wire.h>
#include <Adafruit_AHTX0.h>
// Create AHT20 sensor object
Adafruit_AHTX0 aht;
void setup() {
Serial.begin(115200);
Serial.println("AHT20 Temperature & Humidity Sensor Test");
// Initialize the sensor
if (!aht.begin()) {
Serial.println("ould not find AHT20 sensor, check wiring!");
while (1); // Stop if sensor is not detected
}
Serial.println("HT20 sensor detected successfully");
}
void loop() {
sensors_event_t humidity, temp;
// Get sensor readings
aht.getEvent(&humidity, &temp);
// Print results
Serial.print("🌡️ Temperature: ");
Serial.print(temp.temperature);
Serial.println(" °C");
Serial.print(" Humidity: ");
Seria
AHT20 Temperature & Humidity
- Comments(1)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mammar kebbab EL MOUATEZ
-
-
AEL-2011 Power Supply Module
373 0 2 -
AEL-2011 50W Power Amplifier
346 0 2 -
-
-
Custom Mechanical Keyboard
593 0 0 -
Tester for Touch Screen Digitizer without using microcontroller
255 2 2 -
Audio reactive glow LED wristband/bracelet with NFC / RFID-Tags
253 0 1 -
-
-







