| Parameter Dimension | Specification Details |
|---|---|
| Product Model | A067 |
| Product Weight | Cased weight: 10g — Bare PCB weight: 4g |
| Communication Interface | IIC (I²C) Bus Interface |
| Air Pressure Measurement Range | 300–1100hPa |
| Temperature Measurement Range | -40°C ~ +85°C |
| Humidity Measurement Range | 0%RH ~ 100%RH |
| Module Dimension | See attached drawing |
| Pin Definition |
Positive Power Pin - VDD
|
| Application Scenarios & Applicable Fields | Indoor navigation (floor detection, elevator detection), outdoor navigation, sports & leisure applications, weather forecasting, vertical velocity indication |
| Optional Packaging Solutions | ① Anti-static bag soft packaging ② White cardboard hanging box ③ Kraft paper box |


#include <Wire.h>
#include <Adafruit_AHTX0.h>
#include <Adafruit_BMP280.h>
Adafruit_AHTX0 aht;
Adafruit_BMP280 bmp;
void setup() {
Serial.begin(9600);
Wire.begin();
aht.begin();
bmp.begin(0x76); // 地址不对试 0x77
Serial.println("AHT20+BMP280 开始采集");
}
void loop() {
// 温湿度
sensors_event_t h, t;
aht.getEvent(&h, &t);
// 气压
float pressure = bmp.readPressure() / 100;
float altitude = bmp.readAltitude(1013.25);
Serial.print("温度: "); Serial.print(t.temperature); Serial.print(" ℃ | ");
Serial.print("湿度: "); Serial.print(h.relative_humidity); Serial.print(" %RH | ");
Serial.print("气压: "); Serial.print(pressure); Serial.print(" hPa | ");
Serial.print("海拔: "); Serial.print(altitude); Serial.println(" m");
delay(1000);
}