Maker Bench · Build
Build an Air Quality Monitor with ESPHome
A good air quality monitor answers three different questions — how much dust is in the air, how stale is it, and is it comfortable — with three different sensors. This build combines a Plantower PMS5003 for particles, a Sensirion SCD41 for genuine CO₂ measurement, and a BME280 for temperature, humidity, and pressure, on one ESP32 with ESPHome. It also prints the two caveats the product pages skip, and the price comparison that might talk you out of building it.
Published Nov 21, 2026
The sensors, and what each number really is
Particles — Plantower PMS5003 (~$39.95 as an Adafruit kit; ~$15–25 bare on AliExpress). A laser scattering sensor reporting PM1.0, PM2.5, and PM10 over UART, handled by ESPHome’s pmsx003 component. The caveat: it estimates mass concentration from particle counts. Readings inflate in high humidity (water-swollen particles scatter like bigger ones) and drift as the fan and laser age — service life is roughly three years of continuous running. Treat it as trend-grade: excellent for “the cooking spike is real” and “the filter is working,” not a laboratory instrument.
Carbon dioxide — Sensirion SCD41 ($49.95 as an Adafruit breakout). This is the real measurement: photoacoustic NDIR, specified 400–5,000 ppm at ±(50 ppm + 2.5%) in the lower range. Its sibling SCD40 is cheaper but specified only to 2,000 ppm at looser accuracy — for a monitor whose whole job is the stuffy-room range above 1,000 ppm, the SCD41 is the right part. One behavior to know: its automatic self-calibration assumes the sensor periodically breathes ~400 ppm fresh air. A sensor sealed in an always-occupied room will quietly drift; give it outdoor air weekly or run a forced calibration.
Comfort — Bosch BME280 ($14.95 Adafruit; $3–6 generic). Temperature, humidity, and pressure on I²C. Mount it away from the ESP32’s warmth — the chip’s heat biases temperature readings upward; Apollo’s AIR-1 documentation flags a 2–6 °C offset on its own integrated design, and a DIY build with the sensor on a short lead does better.
The one to be careful with — BME680 “air quality.” The BME680 adds a gas sensor, and Bosch’s BSEC software turns its resistance into an “IAQ” score and an estimated CO₂ equivalent. Print this on the box: that IAQ figure is a 0–500 index calculated from gas resistance — it is not a measurement of any gas, and the eCO2 is inferred, not sensed. BSEC also carries a license that forbids distributing compiled firmware containing it. It is a useful trend signal next to a real CO₂ sensor; as a substitute for one, it misleads.
The build and the true cost
Wiring is two buses: the PMS5003 on a hardware UART (5 V), the SCD41 and BME280 sharing I²C. ESPHome components exist for all three (pmsx003, scd4x, bme280_i2c); the YAML generator includes the I²C sensor block. Put the particle sensor where air flows through it, the CO₂ sensor at breathing height away from a person’s direct exhale, and vents in the case — a sealed box measures itself.
Costs split by sourcing. US retail (Adafruit sensors, a $6–10 board, a real power supply, a case): about $121–138. AliExpress sourcing: about $54–85. Now the comparison that disciplines the project: Apollo’s AIR-1 — a finished, ESPHome-native monitor with a Sensirion SEN55 particle/VOC/NOx sensor rated for ten years — is $109.99 without CO₂ and $129.99 with an SCD40 inside. AirGradient’s ONE, open hardware with an officially supported ESPHome firmware flash, is $138 as a kit. At US-retail parts prices, DIY roughly ties the finished products; it wins on AliExpress pricing, on repairability, on choosing exactly your sensors — and on being a build, which for this bench is sometimes the point. Saying so costs nothing and is why the numbers are printed.
What to do with the data
The automations that justify the sensors: a ventilation reminder (or a smart-plug fan) when CO₂ crosses 1,000 ppm in the bedroom; the air purifier’s fan keyed to PM2.5 rather than a timer; a cooking-spike notification that is really a range-hood reminder. Log everything — air data is only interesting as a trend, and Home Assistant’s history makes the “is the new filter better” question answerable with a graph instead of an opinion. The presence half of the picture is the radar build.
Official documentation and references
- ESPHome — SCD4x component — CO₂ sensor support and calibration options
- ESPHome — BME68x via BSEC2 — the IAQ index definition and the BSEC license terms
- Adafruit — PMS5003 kit — US-retail particle sensor pricing
- Apollo Automation — AIR-1 — the finished ESPHome monitor and its heat-offset note
- AirGradient — ONE pricing — kit $138 / assembled $230, open hardware
Frequently asked questions
Is the BME680’s air quality reading a real measurement?
No. Its IAQ figure is a 0–500 index that Bosch’s BSEC software calculates from gas resistance, and its “eCO2” is inferred from VOC patterns rather than sensed. Useful as a trend next to a real CO₂ sensor; misleading as a substitute for one.
SCD40 or SCD41 for CO₂?
The SCD41. Per Sensirion’s datasheet it is specified to 5,000 ppm with tighter accuracy (±(50 ppm + 2.5%) in the lower range) versus the SCD40’s 2,000 ppm ceiling — and the interesting indoor range is exactly the 1,000–2,000 ppm band where rooms get stuffy.
How accurate is the PMS5003?
Trend-grade. Laser particle counters estimate mass from counts, over-read in high humidity, and drift with age (roughly three-year service life). Right for spikes, filters, and comparisons; not a laboratory reference.
Is it cheaper to build or buy an air monitor?
At US-retail sensor prices, about the same: roughly $121–138 to build versus $109.99–129.99 for Apollo’s finished AIR-1 and $138 for AirGradient’s kit. Building wins on AliExpress sourcing (~$54–85), repairability, and sensor choice.

