Skip to content

Air Quality Sensor

Updated: 6/28/2025 Words: 0 words Reading time: 0 minutes

Air quality sensors are used to detect and quantify pollutants in the air, including particulate matter, contaminants, and harmful gases that are detrimental to human health, as well as environmental conditions like temperature and humidity. They can be used in applications such as air quality monitoring, industrial gas detection, combustion controllers in aircraft, and oxygen concentrators.

Preparation

Hardware

HardwareDescriptionImage
Creative Box PlatformMy Image
Environmental Monitoring ModuleIncluded with Creative Box purchaseMy Image

Software

SoftwareLinkDescription
Environmental Monitoring AppLinkOfficial frontend application, can be loaded and used directly through the console.

Connection

My Image
Connection
Connect the environmental monitoring module to any pin group on the platform. The connection shown above uses pins 12-15

Usage

Reading Current Air Quality Information

Open the Creative Box console and load the Environmental Monitoring Board application from the sensor applications. Enter the application and select the pin number where the Creative Box connects to the environmental monitoring module. The webpage will then automatically display the current air quality information.

Note

The air quality sensor needs 3 to 5 minutes to warm up and produce stable readings after power-on. Please wait for its readings to stabilize.

Creative Box ConsoleLoad ApplicationSelect Pin Number and Display Current Environmental Data

Principles

AGS02MA Air Quality Sensor

The official environmental monitoring module integrates the AGS02MA air quality sensor. This sensor monitors the concentration of total volatile organic compounds (TVOC values, such as formaldehyde, benzene, alcohol, methane, and other organic volatile compounds) and equivalent carbon dioxide (CO₂ concentration estimated by TVOC data combined with algorithms) in the air. It uses metal oxide semiconductor gas-sensing materials (such as SnO₂, WO₃, etc.), whose resistance changes with changes in surrounding gas components. When TVOC gas molecules come into contact with the sensor surface, they undergo a redox reaction with the gas-sensing material, causing the material's resistance value to change. By measuring the resistance change, the gas concentration can be indirectly inferred.

Reference Datasheet Download

Datasheet DownloadLink
AGS02MALink

Parameters

Parameter NameAGS02MA
Operating Temperature0-50°C
Control InterfaceI2C Interface
I2C Address0x1A
Interface Support RateLess than 30kHz
Operating Voltage3.3V-5.5V
Power ConsumptionNormal supply current is 28mA

Reading Air Quality

The following screenshot (AGS02MA Datasheet 7.2) shows how to read air quality information from AGS02MA using the I2C interface.

  • First, write one byte of data via the I2C interface, with the data being 0x0.
  • Then, read five bytes of data via the I2C interface. The first byte is the status byte, followed by three bytes of organic compound concentration data, and finally a checksum byte.
My Image

Air Quality Calculation

After obtaining the organic compound concentration data, please refer to the diagram below for the corresponding air quality.

My Image