Best CO2 and Air Quality Sensors for ESP32: 9 SparkFun, AirGradient, Apollo, Pimoroni, Winsen, Waveshare and Adafruit Picks Compared (Buying Guide)

⚠️ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
Air Quality Buying Guide

🌬️ Best CO2 and Air Quality Sensors for ESP32

True CO2, particulate matter, VOC and NOx sensing for ESP32, ESP-IDF and ESPHome projects: 9 breakouts, modules and ready-made monitors compared.

βœ… 9 Sensors Compared βœ… Verified Amazon ASINs βœ… True CO2 vs eCO2 Explained βœ… ESPHome Friendly

An ESP32 is a natural fit for indoor air monitoring: it reads I2C and UART sensors easily, pushes data over Wi-Fi to MQTT or Home Assistant, and can drive a fan, a window actuator or a warning LED when CO2 climbs. The sensor you pair it with decides whether those numbers mean anything. A cheap gas sensor that estimates CO2 behaves very differently from a real CO2 sensor, and a particulate sensor tells you nothing about stale air.

This guide compares 9 sensors and monitors that work well with ESP32 boards, from all-in-one Sensirion combo boards and a finished open-source monitor to single CO2 breakouts, a budget NDIR module and VOC sensors. Each pick gets a clear job, so you can buy exactly what your project needs.

πŸ’‘ Before you buy: Check whether a sensor measures true CO2 (photoacoustic or NDIR, such as the SCD40, SCD41, SenseAir S8 or MH-Z19C) or reports eCO2, a value calculated from VOC gases (SGP30, CCS811). eCO2 follows trends but is not a real CO2 reading. Also plan for power: particulate sensors run a fan and NDIR modules draw current pulses, so battery projects need sleep modes or a bigger supply.

⚑ Quick Comparison: All 9 Picks

SensorMeasuresInterfaceBest ForBuy
πŸ₯‡ SparkFun IAQ Combo (SCD41 + SEN55)CO2, PM1 to PM10, VOC, NOx, temp, RHI2C (Qwiic)Best Overall DIYBuy Here β†’
🏠 AirGradient ONECO2, PM2.5, TVOC, NOx, temp, RHESP32-C3, Wi-FiBest Ready-Made MonitorBuy Here β†’
🧩 Apollo SEN55 + SCD40 BreakoutPM, VOC, NOx, temp, RH, CO2I2C (STEMMA QT)Best for ESPHome BuildsBuy Here β†’
🎯 SparkFun SCD41 QwiicTrue CO2, temp, RHI2C (2x Qwiic)Best CO2 BreakoutBuy Here β†’
πŸ“¦ Pimoroni SCD41 BreakoutTrue CO2, temp, RHI2C (Qwiic / STEMMA QT)Best Compact CO2Buy Here β†’
πŸ’° Winsen MH-Z19CNDIR CO2UART, PWMBest Budget True CO2Buy Here β†’
🌑️ Waveshare BME688Gas (VOC), temp, RH, pressureI2C, SPIBest 4-in-1 Climate + GasBuy Here β†’
πŸ§ͺ Adafruit SGP30TVOC, eCO2 (estimated)I2C (STEMMA QT)Best Budget VOC TrendsBuy Here β†’
βž• Apollo SCD40 BreakoutCO2, temp, RHI2C (STEMMA QT)CO2 Add-On for Apollo BuildsBuy Here β†’

Specs come from the manufacturers and the live Amazon listings. Star scores below are our ratings.

πŸ” What Matters in an Air Quality Sensor

🫧

True CO2 vs eCO2

Photoacoustic and NDIR sensors measure CO2 directly. MOX gas sensors only estimate it from VOCs, so use them for trends, not ventilation decisions.

🌫️

Particulate Matter

Laser PM sensors (Sensirion SEN5x, Plantower PMS5003) catch smoke, cooking and dust. They have fans, so mount them with free airflow.

πŸ”Œ

Interface and Voltage

Qwiic and STEMMA QT boards plug straight into many ESP32 boards over I2C. UART modules like the MH-Z19C need a 5 V supply.

🏑

ESPHome Support

ESPHome has components for the SCD4x, SEN5x, MH-Z19, BME68x and SGP30, so all of these picks can feed Home Assistant with a few lines of YAML.

πŸ”‹

Power Budget

The SCD41 has a single-shot mode for low-power use. PM sensors with fans are best on USB or mains power.

πŸ† Detailed Reviews: The Top Two

πŸ₯‡ BEST OVERALL DIY SENSOR

SparkFun Indoor Air Quality Combo Sensor (SCD41 + SEN55)

⭐ 4.8/5 · Our Rating · Two Sensirion Sensors, One Board
SCD41
TRUE CO2
SEN55
PM, VOC, NOx
PM1 to PM10
PARTICLE SIZES
Qwiic
I2C PLUG-IN
Buy on Amazon β†’
SparkFun Indoor Air Quality Combo Sensor with SCD41 and SEN55 for ESP32

This is the shortest path to a complete indoor air monitor on an ESP32. SparkFun puts a Sensirion SCD41 photoacoustic CO2 sensor and a Sensirion SEN55 environmental node on one board, so a single Qwiic cable gives you true CO2, PM1.0, PM2.5, PM4 and PM10, VOC and NOx indices, temperature and humidity. Both sensors share the I2C bus at separate addresses, and ESPHome supports both with its scd4x and sen5x components. The SEN55 has a fan, so this is a mains or USB-powered build rather than a coin-cell one.

βœ… Pros
  • True CO2 plus PM, VOC and NOx
  • One cable, one I2C bus
  • Quality Sensirion sensors
  • Strong library and ESPHome support
❌ Cons
  • Premium cost
  • Fan means continuous power
  • Needs an enclosure with airflow
🎯 Verdict: The best all-in-one sensor board for a serious ESP32 air quality monitor.

πŸ‘‰ Check Price on Amazon β†’

🏠 BEST READY-MADE MONITOR

AirGradient ONE Indoor Air Quality Monitor (I-9PSL-DE)

⭐ 4.7/5 · Our Rating · Open-Source ESP32-C3 Monitor
SenseAir S8
NDIR CO2
PMS5003
PM SENSOR
SGP41
TVOC + NOx
ESP32-C3
Wi-Fi MCU
Buy on Amazon β†’
AirGradient ONE indoor air quality monitor with ESP32-C3

If you want a finished, wall-ready monitor that is still fully hackable, the AirGradient ONE is the one to get. Inside is an ESP32-C3 with a SenseAir S8 NDIR CO2 sensor, a Plantower PMS5003 particle sensor, a Sensirion SGP41 for TVOC and NOx indices and an SHT40 for temperature and humidity, plus a small OLED, RGB status LEDs and USB-C power. The firmware is open source and the listing states Home Assistant support, and many owners flash ESPHome onto it. It’s also a great reference design to study before building your own.

βœ… Pros
  • Complete, enclosed monitor
  • True NDIR CO2 plus PM, VOC, NOx
  • Open-source ESP32-C3 firmware
  • Display and LED indicators
❌ Cons
  • Less to build if you want a project
  • Larger than a breakout
🎯 Verdict: The best plug-in monitor for Home Assistant users who still want open hardware.

πŸ‘‰ Check Price on Amazon β†’

πŸ”§ Detailed Reviews: Breakouts and Modules

🧩 BEST FOR ESPHOME BUILDS · ⭐ 4.6/5

3. Apollo Automation SEN55 and SCD40 Breakout Board

SEN55 (PM, VOC, NOx, temp, RH) Β· SCD40 CO2 Β· 2x STEMMA QT Β· header holes Β· DEV-1 and DEV-2 compatible
Buy Here β†’
Apollo Automation SEN55 and SCD40 breakout board with STEMMA QT connectors

Apollo Automation makes the ESPHome-based AIR-1 monitor, and this breakout brings the same sensor pairing to your own builds. It carries a Sensirion SEN55 and an SCD40 CO2 sensor, with two STEMMA QT connectors and standard header holes, and it is designed to plug into Apollo’s DEV-1 and DEV-2 ESP32 boards. It’s a tidy way to build an AIR-1 style sensor in a custom enclosure. Check the listing for which sensors are included before ordering.

βœ… Pros: PM, VOC, NOx and CO2 on one board; STEMMA QT; made by an ESPHome-focused brand.
❌ Cons: SCD40 rather than SCD41; sensor bundle varies by option.
🎯 Verdict: The best DIY base for an ESPHome air quality sensor.
🎯 BEST CO2 BREAKOUT · ⭐ 4.7/5

4. SparkFun CO2 Humidity and Temperature Sensor, SCD41 (Qwiic)

Sensirion SCD41 photoacoustic CO2 Β· temp and RH Β· I2C 0x62 Β· 2x Qwiic Β· 2.4 to 5.5 V
Buy Here β†’
SparkFun SCD41 Qwiic CO2 humidity and temperature sensor

When CO2 is the number you care about, for ventilation alerts, a classroom monitor or a fan controller, a Sensirion SCD41 breakout is the sweet spot. It measures real CO2 with a photoacoustic cell, adds temperature and humidity, and talks I2C at address 0x62. SparkFun’s board has two Qwiic connectors for daisy-chaining and accepts a wide supply range. The SCD41’s single-shot mode lets battery-powered ESP32 nodes take a reading, then sleep.

βœ… Pros: True CO2; tiny; low-power single-shot mode; easy Qwiic wiring.
❌ Cons: No particulate or VOC sensing; temperature reads high in tight enclosures.
🎯 Verdict: The best plug-and-play true CO2 sensor for ESP32.
πŸ“¦ BEST COMPACT CO2 Β· ⭐ 4.6/5

5. Pimoroni SCD41 CO2 Sensor Breakout

SCD41 Β· 400 to 5,000 ppm Β· Β±(40 ppm + 5%) Β· I2C 0x62 Β· Qwiic / STEMMA QT Β· 3 to 5 V
Buy Here β†’
Pimoroni SCD41 CO2 sensor breakout

Pimoroni’s take on the SCD41 is one of the smallest true CO2 boards you can buy, at roughly 24 x 21 mm. It reads 400 to 5,000 ppm with a stated accuracy of Β±(40 ppm + 5%), adds temperature and humidity, and works from 3 to 5 V. A Qwiic / STEMMA QT connector and a Breakout Garden pinout make it easy to wire to an ESP32 or move between projects. It’s a good choice when the sensor has to hide inside a small enclosure.

βœ… Pros: Very compact; 3 to 5 V; Qwiic connector; same proven SCD41.
❌ Cons: Single connector; CO2, temperature and humidity only.
🎯 Verdict: The best SCD41 board for small enclosures.
πŸ’° BEST BUDGET TRUE CO2 Β· ⭐ 4.3/5

6. Winsen MH-Z19C NDIR CO2 Sensor

NDIR CO2 Β· 400 to 5,000 ppm Β· UART (3.3 V TTL) and PWM Β· 5 V supply Β· 1 minute preheat
Buy Here β†’
Winsen MH-Z19C NDIR CO2 sensor module

The MH-Z19C is the classic low-cost NDIR CO2 module in maker projects. It runs from 5 V (the ESP32 dev board’s VIN or USB rail works) and outputs readings over 3.3 V TTL UART, so it connects directly to any free ESP32 UART, and ESPHome’s mhz19 component reads it out of the box. It also has a PWM output. Buy it from the Winsen-branded listing: the module is widely cloned, and fakes are a common cause of odd readings.

βœ… Pros: Real NDIR CO2 for little money; simple UART; well supported.
❌ Cons: Needs 5 V; bulkier; no temperature or humidity; clones exist.
🎯 Verdict: The best budget true CO2 sensor if you can supply 5 V.
🌑️ BEST 4-IN-1 CLIMATE + GAS · ⭐ 4.4/5

7. Waveshare BME688 Environmental Sensor

Bosch BME688 Β· temperature, humidity, pressure, gas (VOC) Β· I2C and SPI Β· 3.3 V / 5 V
Buy Here β†’
Waveshare BME688 environmental sensor board

The Bosch BME688 combines temperature, humidity and barometric pressure with a heated metal-oxide gas sensor that responds to VOCs, and it supports Bosch’s AI gas-scanning tools. Waveshare’s board offers both I2C and SPI and a level translator for 3.3 V or 5 V hosts. With ESPHome’s BSEC2-based component you get an IAQ index and an estimated CO2 value. It’s ideal for a weather or room-climate node that also flags cooking smells and solvents, but it is not a true CO2 sensor.

βœ… Pros: Four measurements in one tiny chip; I2C or SPI; low power.
❌ Cons: CO2 is estimated only; IAQ needs a burn-in period.
🎯 Verdict: The best single sensor for climate plus a VOC air quality index.
πŸ§ͺ BEST BUDGET VOC TRENDS Β· ⭐ 4.0/5

8. Adafruit SGP30 Air Quality Sensor Breakout (VOC and eCO2)

Sensirion SGP30 Β· TVOC 0 to 60,000 ppb Β· eCO2 400 to 60,000 ppm Β· I2C 0x58 Β· STEMMA QT Β· 3.3 V or 5 V
Buy Here β†’
Adafruit SGP30 VOC and eCO2 air quality sensor breakout

The SGP30 is a multi-pixel metal-oxide gas sensor that reports TVOC and an eCO2 value. Adafruit is clear that eCO2 is calculated from hydrogen readings, not measured CO2, so treat it as a “the air is getting worse” indicator. The board has STEMMA QT connectors, a 1.8 V regulator and level shifting for 3.3 V or 5 V hosts, and ESPHome supports it with the sgp30 component. It’s a cheap way to learn gas sensing or add a VOC trend line to an existing node.

βœ… Pros: Low cost; STEMMA QT; good VOC trend tracking.
❌ Cons: eCO2 is not real CO2; older sensor generation.
🎯 Verdict: A budget VOC sensor for trends, not for ventilation decisions.

βž• Also Worth Considering

βž• CO2 ADD-ON FOR APOLLO BUILDS Β· ⭐ 4.4/5

9. Apollo Automation SCD40 CO2 Sensor Breakout Board

A standalone SCD40 CO2 breakout from Apollo with STEMMA QT connectors. It suits builds based on Apollo’s DEV boards, or anyone who already has a particulate sensor and only wants to add CO2, temperature and humidity to an ESPHome node.

Buy Here β†’

πŸ“‹ Which Sensor for Which ESP32 Project?

ProjectWhat You NeedRecommended Pick
Full indoor air quality stationCO2, PM, VOC, NOxSparkFun IAQ Combo
Home Assistant monitor, no solderingFinished deviceAirGradient ONE
Custom ESPHome sensor in your own caseSEN55 + CO2 on STEMMA QTApollo SEN55 + SCD40 Breakout
Ventilation fan or window controllerAccurate true CO2SparkFun SCD41 or Pimoroni SCD41
Battery CO2 logger with deep sleepSingle-shot low-power modeSparkFun SCD41
Low-cost classroom CO2 alarmTrue CO2 on a budgetWinsen MH-Z19C
Weather and room-climate nodeTemp, RH, pressure, VOC indexWaveshare BME688
Learning gas sensing on a budgetVOC trendsAdafruit SGP30

πŸ›’ Which One Should You Buy?

🧰

You want everything on one board

Get the SparkFun IAQ Combo or the Apollo SEN55 + SCD40 breakout.

🏠

You want it working today

The AirGradient ONE is a finished ESP32-C3 monitor.

🫧

You only care about CO2

An SCD41 board from SparkFun or Pimoroni, or the MH-Z19C on a budget.

🌑️

You want climate plus VOCs

The Waveshare BME688 covers four readings with one chip.

❓ Frequently Asked Questions

What’s the difference between CO2 and eCO2?

CO2 sensors such as the SCD41, SenseAir S8 and MH-Z19C measure carbon dioxide directly with light absorption. eCO2 sensors such as the SGP30 measure VOC gases and calculate a CO2-equivalent value. eCO2 rises with stale air in many rooms, but it can be fooled by cleaning products or cooking.

SCD40 or SCD41: which should I choose?

Both use the same photoacoustic principle and I2C interface. The SCD41 has a wider specified range and a single-shot measurement mode for low-power, battery projects. For a USB-powered room monitor, either works well.

Do CO2 sensors need calibration?

Most use automatic self-calibration, which assumes the sensor sees fresh outdoor-level air (around 400 ppm) regularly. In rooms that are never aired out, disable it and do a forced calibration outdoors instead. ESPHome exposes both options for the SCD4x and MH-Z19.

Why does my sensor read the temperature too high?

The ESP32 and the sensors themselves give off heat. Keep the sensor away from the ESP32 module and voltage regulator, add vents to your enclosure, and apply a temperature offset in software if needed.

Can I run an air quality sensor on batteries?

A CO2-only node can, using an SCD41 in single-shot mode and ESP32 deep sleep between readings. Particulate sensors run a fan and are best left on USB or mains power.

🏁 Final Verdict: Best Air Quality Sensors for ESP32

The right sensor for each job:

πŸ₯‡ Best Overall DIY: SparkFun IAQ Combo (SCD41 + SEN55)
Buy Here β†’
🏠 Best Ready-Made Monitor: AirGradient ONE
Buy Here β†’
🧩 Best for ESPHome Builds: Apollo SEN55 + SCD40 Breakout
Buy Here β†’
🎯 Best CO2 Breakout: SparkFun SCD41 Qwiic
Buy Here β†’
πŸ’° Best Budget True CO2: Winsen MH-Z19C
Buy Here β†’
🌑️ Best Climate + VOC: Waveshare BME688
Buy Here β†’

For most ESP32 makers, the SparkFun IAQ Combo is the best single purchase: true CO2 plus particulates, VOC and NOx on one Qwiic board. Choose the AirGradient ONE if you want a finished monitor, an SCD41 breakout if CO2 is all you need, and the MH-Z19C when budget matters most. For more sensor ideas, see our best sensors for ESP32 guide, pair your build with an mmWave presence sensor, run it all from a Home Assistant server, and learn to save power with our ESP-IDF deep sleep tutorial.

πŸ’¬ Building an air quality monitor? Tell us which sensors and ESP32 board you’re using in the comments below, and we’ll help you pick the right setup.

All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying.

Leave a Comment