SKU:U234


























Chain ENV is an environmental sensing node in the M5Stack Chain series. It integrates the AHT20 temperature and humidity sensor and the SPA06 barometric pressure sensor, providing air temperature, relative humidity, atmospheric pressure, and calculated altitude data in one compact node. It also includes a programmable RGB LED for status indication. For example, when the temperature or humidity exceeds the configured threshold and triggers an alarm, the indicator LED turns red.
Chain ENV integrates an STM32G031G8U6 main controller and uses a UART serial daisy-chain communication protocol. With two HY2.0-4P expansion interfaces, it can be daisy-chained with additional Chain series devices to build richer interactive and monitoring applications. It is suitable for environmental monitoring, smart home, weather stations, altitude tracking, and other applications.
| Specification | Parameter |
|---|---|
| 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 Measurement Range | 300 ~ 1100 hPa |
| Communication | UART 115200bps@8N1 |
| Expansion Interface | 2x HY2.0-4P |
| RGB LED | 1x WS2812C |
| Product Size | 24.0 x 24.0 x 16.0mm |
| Product Weight | 5.5g |
| Package Size | 138.0 x 93.0 x 19.0mm |
| Gross Weight | 8.7g |
Use a Chain Bridge connector to connect the Chain main controller (such as Chain DualKey / Chain Captain) and the various Chain series devices. Note the orientation when connecting; the triangular arrow points outward from the main controller, as shown below:
Chain ENV provides altitude measurement and requires calibration during use:
Because the actual altitude is calculated from the difference between the local sea-level pressure and the pressure measured at the current location, one value must be known before the other can be calculated. The following two calibration methods are supported:


| STM32G031 | PA8 |
|---|---|
| WS2812C | RGB |
| STM32G031 | PB6 | PB7 | PA2 | PA3 |
|---|---|---|---|---|
| UART1 | TXD1 | RXD1 | ||
| UART2 | TXD2 | RXD2 |
| STM32G031 | PA12 (PA10) | PA11 (PA9) |
|---|---|---|
| AHT20 | SDA | SCL |
| SPA06 | SCK | SDI |