M5Stack Chain ENV AHT20/SPA06 Temperature, Humidity & Pressure Sensor
Shipping from China within 5–10 working days
- During check out, you can choose direct shipping from China, or let us import the order to our EU/US office first and ship it to you locally.
- Import customs clearance and VAT are fully handled by us.
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
M5Stack Chain ENV AHT20/SPA06 Temperature, Humidity & Pressure Sensor
Description
M5Stack Chain ENV is a compact environmental sensor node for the modular Chain series. Its AHT20 measures temperature and relative humidity, while the SPA06 measures atmospheric pressure. Calibrated pressure readings also support calculated altitude. The temperature and humidity sensor adds related environmental measurements to a Chain setup in a 24 × 24 × 16 mm enclosure.
An STM32G031G8U6 processes measurements and communicates through a UART serial daisy-chain protocol. Two HY2.0-4P interfaces allow additional Chain devices to be connected. A compatible host such as M5Stack Chain Captain can display readings and run the application. Chain ENV is not a conventional Grove I²C module connected directly to a generic sensor port.
A programmable RGB LED can indicate measurement status or configured thresholds. The barometric pressure sensor supports local environmental observation and calibrated height estimation. Altitude is calculated from pressure rather than measured by GPS; a known sea-level pressure or current altitude is required as the reference.
Features
- Three environmental quantities: Chain ENV combines air temperature, relative humidity and atmospheric pressure in one small node.
- AHT20 sensing: The temperature and humidity sensor has stated accuracies of ±0.5°C and ±5%RH.
- SPA06 pressure measurement: The barometric pressure sensor covers 300–1100 hPa with stated pressure accuracy of ±0.3 hPa.
- Calibrated altitude: The altitude sensor can use local sea-level pressure or a known current height as its reference; stated altitude accuracy is ±1 m under appropriate conditions.
- Serial Chain interface: Two HY2.0-4P ports and UART at 115200bps, 8N1 connect the environmental sensor to a suitable Chain host.
- Programmable indication: A WS2812C RGB LED can indicate a threshold alarm when the required logic is configured.
- Small and lightweight: Chain ENV weighs 5.5g and includes one Chain Bridge for connection.
Specifications
| Product | M5Stack Chain ENV |
|---|---|
| SKU | M5-U234 / U234 |
| MCU | STM32G031G8U6 |
| Temperature and Humidity Sensor | AHT20 |
| Barometric Pressure Sensor | SPA06 |
| Temperature Measurement Range | −40 ~ 85°C (AHT20) |
| Temperature Accuracy | ±0.5°C (AHT20) |
| Humidity Measurement Range | 0 ~ 100%RH (AHT20) |
| Humidity Accuracy | ±5%RH |
| Pressure Accuracy | ±0.3 hPa |
| Altitude Accuracy | ±1 m; pressure-derived value requiring calibration |
| Pressure Measurement Range | 300 ~ 1100 hPa |
| Communication | UART 115200bps @ 8N1; Chain protocol |
| Expansion Interface | 2 × HY2.0-4P |
| RGB LED | 1 × WS2812C |
| Product Size | 24.0 × 24.0 × 16.0 mm |
| Product Weight | 5.5g |
| Package Size | 138.0 × 93.0 × 19.0 mm |
| Gross Weight | 8.7g |
| Compatibility | M5Stack Chain series with a suitable host, such as Chain Captain or Chain DualKey |
Applications
- Indoor monitoring: The environmental sensor supplies temperature, humidity and pressure readings for custom displays and time-series logging.
- Compact weather station: Observe local pressure trends with the barometric pressure sensor while displaying temperature and humidity; consider the sensing opening and enclosure arrangement.
- Smart-agriculture prototypes: Use the temperature and humidity sensor in protected monitoring experiments. Rain, irrigation and condensation need suitable protection; no IP rating is specified.
- Home-automation experiments: Integrate Chain ENV into custom threshold logic, using its RGB LED or other Chain nodes for feedback.
- Relative altitude tracking: Calibrate the altitude sensor before use and evaluate pressure changes. Weather-related pressure variation can change the calculated height.
- Education and modular acquisition: Use the environmental sensor to explore raw pressure, sea-level reference pressure, calculated altitude and serial bus communication.
Product List
- 1 × Chain ENV
- 1 × Chain Bridge
Other Content
Feature Overview

Connection and Protocol
Fit the Chain Bridge with its triangular mark pointing away from the main controller toward the next node. Check contacts, direction and supply before powering the setup. Chain ENV uses the Chain UART protocol; matching connector shapes do not make it interchangeable with a Grove I²C module. Use the correct pin assignment and compatible firmware.
Chain Connection

Connector View

Altitude Calibration
The altitude sensor supports two reference methods. Enter current local sea-level pressure to calculate altitude, or enter a known current altitude. With the second method, Chain ENV calculates the corresponding sea-level pressure for subsequent measurements. Actual station pressure and pressure corrected to sea level are different quantities.
Check the reference after weather changes or moving to another location. The ±1 m figure is not an unconditional accuracy guarantee for every installation, weather condition or time interval. The barometric pressure sensor does not replace satellite-based positioning.
Setup and Measurement Environment
Begin by detecting Chain ENV with a compatible controller and driver library. Read temperature, humidity and pressure first, then set the altitude reference and desired LED thresholds. An alarm requires the appropriate configuration or application logic; it is not a guaranteed autonomous safety function.
Provide representative airflow around the temperature and humidity sensor and consider nearby heat sources. Published measurement ranges do not establish suitability for immersion or unprotected outdoor use. The environmental sensor is for electronics and monitoring projects, not certified safety-critical instrumentation.
Rear Housing and Interfaces

Internal Signal Mapping
| RGB LED | STM32 PA8 → WS2812C RGB |
|---|---|
| UART1 | PB6 TXD1 / PB7 RXD1 |
| UART2 | PA2 TXD2 / PA3 RXD2 |
| AHT20 | PA12 (PA10) SDA / PA11 (PA9) SCL |
| SPA06 | PA12 (PA10) SCK / PA11 (PA9) SDI |
Package and Contents

Resources
- Chain ENV Documentation
- V1.0 Schematic
- Mechanical Dimension Drawing
- AHT20 Datasheet
- SPA06 Datasheet
- Chain Driver Library
- Chain ENV Internal Firmware
- Enclosure and Structure Files
FAQ
Can Chain ENV connect directly to a Grove I²C port?
No. This environmental sensor uses the UART-based Chain protocol. Both pin assignments and host software support must match.
How do I calibrate altitude?
Provide the altitude sensor with either local sea-level pressure or a known current height. The remaining reference quantity is calculated from that input.
Is Chain Captain included?
No. The package contains one Chain ENV and one Chain Bridge. A suitable main controller is required separately.
Does the RGB LED automatically provide every alarm function?
The LED is programmable. Configure the required threshold and alarm behavior through suitable settings or application software.
Is it waterproof or a GPS altitude device?
No water-protection rating is specified. The barometric pressure sensor provides calibrated pressure-derived altitude, not GPS position or GPS height.











