The AGS10 is a compact MEMS-based gas sensor designed to measure Total Volatile Organic Compounds (TVOC) in the air.
It can detect low concentrations of gases such as formaldehyde, ethanol, toluene, and other VOCs, making it ideal for indoor air quality monitoring in homes, offices, or vehicles.
AGS10 TVOC sensor module (front and back view)
Specifications
| Parameter | Value |
|---|---|
| I2C Address | 0x1A |
| Measurement | TVOC (ppb) |
| Technology | MEMS |
| Output | Parts per billion (ppb) |
| Datasheet | ⬇️AGS10.pdf |
Example
#include <Wire.h>
#define AGS10_ADDR 0x1A
void setup() {
Serial.begin(115200);
Wire.begin(2, 0);
}
void loop() {
Wire.beginTransmission(AGS10_ADDR);
Wire.write(0x00);
Wire.endTransmission(false);
if (Wire.requestFrom(AGS10_ADDR, 4) == 4) {
Wire.read();
Wire.read();
uint16_t tvoc = Wire.read() << 8 | Wire.read();
Serial.println(tvoc);
}
delay(2000);
}
The code sends a read command to register 0x00 and then requests 4 bytes from the sensor. The last two bytes are combined into a 16-bit TVOC reading in ppb.
Output
These ranges are useful for quick interpretation in home automation or environmental monitoring projects.
| TVOC Range (ppb) | Air Quality | Description |
|---|---|---|
| 0 – 65 | Excellent | Very clean air. |
| 65 – 220 | Good | Acceptable indoor air quality. |
| 220 – 660 | Moderate | May cause mild discomfort. |
| 660 – 2200 | Poor | Likely discomfort or headaches. |
| 2200 – 5500 | Very Poor | Reduced air quality. |
| > 5500 | Hazardous | Possible adverse reactions; ventilation recommended. |