AGS10 → Gas Sensor

The AGS10 is a compact MEMS-based gas sensor that measures Total Volatile Organic Compounds (TVOCs) in the air. It detects low concentrations of harmful gases such as formaldehyde, ethanol, toluene, and other VOCs, providing output in parts per billion (ppb). It's ideal for monitoring indoor air quality in environments like homes, offices, or vehicles.

AGS10 sensor PCB

#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);
}

 

TVOC Range (ppb) Air Quality Notes
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 Poor air quality
> 5500 Hazardous Adverse reactions possible, ventilation recommended

 




06 May 2025 | Last Updated: 22 Nov. 2025 | jaimedcsilva

Related
  • AGS10 → Gas Sensor
  • VEML6040 → Light Sensor
  • INA226 → Voltage & Current Monitor

  • Buy Me a Coffee