SGP40 Air Quality Sensor

Detects volatile organic compounds (VOCs) in the air. Provides a 0-500 air quality index indicating relative air freshness.

WorksMedium confidence

From $9.95

Say it to PAL

“Keep an eye on how stuffy the air is.”

The code PAL writes

p.onSensorChange('qwiic-sgp40', 'voc_index', (voc) => {
  if (voc > 200) p.notify('Air quality degraded: VOC ' + voc);
});
await p.waitUntilStopped();

When to pick it

Detects volatile organic compounds (paint fumes, cooking odors, cleaning chemicals). NOT a CO2 sensor — measures air freshness/odors.

Good to know

  • First 60 seconds after power-on: readings are unreliable.
  • Takes 12+ hours to learn baseline 'normal' air. First day readings will drift.

About it

A VOC sensor for indoor air quality monitoring. VOCs are released by paints, cleaning products, furniture, cooking, and biological processes. The sensor outputs a VOC Index from 0-500, where lower values indicate cleaner air. Can be used to trigger ventilation or as part of a broader air quality monitoring system.

Facts

Tested

WorksMedium confidence

Its driver works. We have not signed it off on a real board yet.

I2C address

0x59

The SGP40 Air Quality Sensor answers at I2C address 0x59. The address is fixed.

Current

2.6 mA

The catalog lists a typical draw of 2.6 mA for the Air Quality Sensor, copied from the maker’s description and not measured by Palpable.

Board size

25.4 × 17.78 mm

The Air Quality Sensor board measures 25.4 × 17.78 mm and stands 4.6 mm tall with its parts. It has 4 mounting holes. These dimensions are from the maker’s mechanical drawing.

Chip

SGP40

Its sensor is the Sensirion SGP40.

SGP40 datasheet

Free to reuse

Every fact here is open data under CC BY 4.0. Copy it into your own docs or code, and credit Palpable. Download it

This record was last changed on October 26, 2026.

See every part

Tested on a real boardHigh confidencehold up a color, and it names itLight Sensorfrom $8.00Tested on a real boardHigh confidenceit knows when it has been picked upAccelerometer + Gyroscopefrom $8.00Tested on a real boardHigh confidenceit feels the weather turning before you doEnvironment Sensorfrom $10.40