Built to order

Dual-Band Air Quality Monitor using XIAO ESP32-C5

This project builds a dual-band air quality monitor around the Seeed Studio XIAO ESP32-C5 that measures PM2.5, PM10, CO2, temperature, humidity and pressure, and serves the readings on a live web dashboard with an AQI display and threshold alerts. It pairs a PMS5003 particle sensor with an SCD41 CO2 sensor and a BME280 climate sensor, joining the less-congested 5 GHz Wi-Fi 6 band for faster dashboard updates and falling back to 2.4 GHz for range. Suitable for B.E./B.Tech final-year projects in Electronics, Electrical and IoT & Embedded Systems.

Chat on WhatsApp — get a quotation

IoT & Embedded HTML · CSS · JavaScript dashboardBME280 climate sensorArduino IDE · ESP-IDFXIAO ESP32-C5PMS5003 particle sensorSCD41 CO2 sensorUS EPA AQI calculationHardware
Dual-Band Air Quality Monitor using XIAO ESP32-C5 — project thumbnail preview
More project photos (2)

The problem

This Dual-Band Air Quality Monitor using XIAO ESP32-C5 is a compact indoor air-quality station that measures fine dust, carbon dioxide and room climate, then shows them on a live web dashboard with AQI and threshold alerts. It is built around the Seeed Studio XIAO ESP32-C5, a thumb-sized board launched in January 2026, the first XIAO with dual-band Wi-Fi 6, paired with three proven sensors: a Plantower PMS5003 for PM1.0, PM2.5 and PM10, a Sensirion SCD41 for CO2, and a Bosch BME280 for temperature, humidity and pressure. Most student air-quality builds use one dust sensor and a 2.4 GHz-only controller, so they report a single number on a crowded band and cannot tell a stuffy room from a dusty one. This monitor separates the two problems: particle levels drive the AQI display, while CO2 drives the ventilation alert, and the 5 GHz link keeps dashboard updates flowing in flats and labs where the 2.4 GHz band is saturated with neighbouring networks.

SYSTEM FLOW

4 components 3 connections

Live flow
Drag to explore
100%
sensorPMS5003 + SCD41 + BME280

Particulate, CO2, temperature, humidity and pressure readings.

Follow the working sequence

How it works

Air is drawn through the PMS5003 by its built-in fan, where a laser counts scattered light from passing particles and the sensor reports PM1.0, PM2.5 and PM10 over UART, while the SCD41 measures CO2 by photoacoustic NDIR sensing and the BME280 reads temperature, humidity and pressure over a shared I2C bus. The XIAO ESP32-C5 polls the three sensors on a fixed schedule, checks each reading against configured thresholds, and converts the PM2.5 value into a US EPA Air Quality Index band on the device itself. Results are served on a local web dashboard over dual-band Wi-Fi 6, refreshing about every 5 seconds, with the current AQI, per-pollutant cards, a 24-hour PM2.5 chart and an alert log. When a threshold is crossed, the dashboard banner changes colour and the on-board buzzer sounds, so a stuffy classroom or a dusty workshop is noticed immediately instead of at the end of the day.

  1. The PMS5003 fan draws room air through its laser chamber and reports PM1.0, PM2.5 and PM10 over UART at 5 V. Builder note: allow about 30 seconds after power-up before trusting the first readings, because the fan and laser need that time to settle.
  2. The SCD41 measures CO2 by photoacoustic NDIR sensing over I2C at address 0x62 (datasheet), delivering a fresh reading about every 5 seconds in periodic mode. Builder note: the sensor draws up to 205 mA in peaks during measurement (datasheet), so it is powered from the regulated 5 V rail, never from a GPIO pin.
  3. The BME280 reads temperature, humidity and pressure over the same I2C bus at address 0x76 or 0x77 (datasheet), sampled about once per minute. Builder note: mount it away from the warm XIAO board and sample in forced mode, because board self-heating pushes its temperature reading above ambient.
  4. The XIAO ESP32-C5 (32-bit RISC-V up to 240 MHz, datasheet) reads all three sensors, discards out-of-range frames, and smooths the PM2.5 stream with a short moving average before display.
  5. PM2.5 is converted on-device into a US EPA AQI value and band using the published PM2.5 breakpoints (0–12.0 µg/m³ Good, 12.1–35.4 µg/m³ Moderate, 35.5–55.4 µg/m³ Unhealthy for Sensitive Groups).
  6. The board joins the Wi-Fi network on the 5 GHz band first and falls back to 2.4 GHz automatically when the 5 GHz signal is weak. Builder note: the external antenna must be a dual-band part — a 2.4 GHz-only antenna connects on 2.4 GHz and struggles on 5 GHz.
  7. A single-file HTML dashboard served by the board shows the AQI, per-pollutant cards, a 24-hour PM2.5 chart and the alert log, refreshing approximately every 5 seconds (design target).
  8. When PM2.5 or CO2 crosses its configured threshold, the dashboard banner changes colour, the event is written to the alert log, and the on-board buzzer sounds for 10 seconds (design target).

Tech stack:

  • XIAO ESP32-C5 · Arduino / ESP-IDF
  • PMS5003 · SCD41 · BME280 sensors
  • Wi-Fi 6 (802.11ax) · 2.4 GHz + 5 GHz
  • HTML · CSS · JavaScript dashboard
  • UART · I2C sensor buses
  • US EPA AQI breakpoints
  • MQTT (optional cloud uplink)
  • Git
Parameter Value
Controller Seeed Studio XIAO ESP32-C5 (ESP32-C5HR8, 32-bit RISC-V up to 240 MHz, datasheet)
Memory 8 MB flash + 8 MB PSRAM (datasheet)
Wireless Dual-band Wi-Fi 6 (2.4 GHz + 5 GHz, 802.11ax) · Bluetooth 5 LE · 802.15.4 (datasheet)
Board size 21 × 17.8 mm (datasheet)
GPIO 11 GPIO pins (datasheet)
Particle sensor PMS5003 — PM1.0 / PM2.5 / PM10, 0–500 µg/m³ effective range, 1 µg/m³ resolution (datasheet)
CO2 sensor SCD41 — 400–5,000 ppm specified range, ±(50 ppm + 2.5% of reading) at 400–1,000 ppm (datasheet)
Climate sensor BME280 — −40 to +85 °C, 0–100 %RH, 300–1,100 hPa (datasheet)
AQI US EPA PM2.5 breakpoints, computed on-device
Dashboard refresh Approximately every 5 s (design target)
Alert thresholds Configurable in firmware; defaults PM2.5 35 µg/m³, CO2 1,000 ppm (design target)
Power 5 V via USB-C; 3.7 V Li-Po with on-board charging (datasheet)

Project features

The monitor's strongest capabilities are its three-sensor measurement set, its dual-band Wi-Fi 6 link, its on-device AQI computation, and its threshold alerting. The PMS5003, SCD41 and BME280 together cover the quantities that decide whether indoor air feels bad: particles, carbon dioxide, heat and humidity, so one device answers both the dust question and the ventilation question. The XIAO ESP32-C5 joins the 5 GHz band when it is available, which sidesteps the crowded 2.4 GHz channels found in hostels and apartment blocks, and falls back to 2.4 GHz automatically when the 5 GHz signal is weak. AQI is computed on the board itself from US EPA PM2.5 breakpoints, so the dashboard shows a single understandable number instead of raw sensor counts, and a buzzer plus a dashboard banner fire when PM2.5 or CO2 crosses a threshold the student sets in firmware.

  • [Three-sensor measurement set] The PMS5003 reports PM1.0, PM2.5 and PM10, the SCD41 measures CO2 directly by photoacoustic NDIR sensing, and the BME280 adds temperature, humidity and pressure, so dust and ventilation problems are measured separately instead of guessed from one number.
  • [Dual-band Wi-Fi 6 link] The ESP32-C5 connects on 5 GHz Wi-Fi 6 when the network offers it and falls back to 2.4 GHz automatically for range, keeping the dashboard reachable in crowded hostels where the 2.4 GHz band is saturated.
  • [On-device AQI computation] PM2.5 is converted into a US EPA Air Quality Index value and band (Good, Moderate, Unhealthy for Sensitive Groups and above) on the board itself, so the dashboard shows one understandable number with no cloud service in the loop.
  • [Live web dashboard] A single-file HTML dashboard served by the board shows the current AQI, per-pollutant cards, a 24-hour PM2.5 chart and an alert log, refreshing approximately every 5 seconds (design target).
  • [Threshold alerts] A buzzer and a dashboard banner fire when PM2.5 or CO2 crosses a configurable threshold (defaults: PM2.5 35 µg/m³, CO2 1,000 ppm), so a stuffy classroom or a dusty workshop is noticed immediately.
  • [CO2-based ventilation guidance] The SCD41's automatic self-calibration tracks fresh-air baselines over days, and the dashboard flags sustained CO2 above 1,000 ppm as a prompt to ventilate the room.
  • [Compact XIAO form factor] The whole monitor fits on one small breadboard around the 21 × 17.8 mm XIAO board (datasheet), powered by 5 V USB-C with an optional 3.7 V Li-Po battery using the board's on-board charging.

Comparison

Feature This monitor Basic single-sensor monitor Commercial purifier display
Pollutants measured PM1.0, PM2.5, PM10, CO2, temperature, humidity, pressure PM2.5 only PM2.5, sometimes CO2
Connectivity Dual-band Wi-Fi 6 (2.4 GHz + 5 GHz) 2.4 GHz Wi-Fi only, or none App via vendor cloud
AQI display Yes, computed on-device from US EPA breakpoints Raw µg/m³ number only Yes, vendor's own scale
Alerts Buzzer + dashboard banner, configurable thresholds Usually none App notification only
Data ownership Readings stay on the local Wi-Fi network Local display only Stored on vendor servers
Open to modify Firmware and dashboard fully open Limited Not modifiable

What is included

  • Working prototype (XIAO ESP32-C5 + PMS5003 + SCD41 + BME280, wired on breadboard and labelled)
  • Firmware source code (Arduino / ESP-IDF)
  • Web dashboard (single-file HTML served by the board)
  • Circuit and wiring diagram with component list
  • Project abstract PDF
  • Setup and calibration guide (warm-up, self-calibration, threshold configuration)
  • Demonstration guidance and viva Q&A document

Limitations & prerequisites

  • The PMS5003 counts particles by laser scattering, so its readings are indicative rather than reference-grade: consistency error is ±10 µg/m³ at 0–100 µg/m³ (datasheet).
  • The SCD41 takes about 60 s (τ63%, datasheet) to settle after a step change in CO2, so fast CO2 spikes are smoothed in the displayed value.
  • The BME280 temperature reading runs above ambient when the sensor sits near the warm board; mount it away from the XIAO and sample in forced mode.
  • The 5 GHz band has shorter range through walls than 2.4 GHz; the monitor falls back to 2.4 GHz automatically when the 5 GHz signal is weak.
  • The dashboard is served on the local Wi-Fi network only; remote access needs the optional MQTT cloud uplink listed under customization.
  • The prototype is built for indoor use and has no outdoor weatherproofing.
  • AQI is computed from PM2.5 only and does not cover ozone or other gases.

Frequently Asked Questions

Which controller is used and why the XIAO ESP32-C5?

The Seeed Studio XIAO ESP32-C5, built on Espressif's ESP32-C5 chip with a 32-bit RISC-V core running up to 240 MHz (datasheet), was chosen because it is the first XIAO board with dual-band Wi-Fi 6, so the monitor can use the less-congested 5 GHz band in crowded hostels while keeping 2.4 GHz as a fallback. Its 8 MB flash plus 8 MB PSRAM also leaves room for the dashboard and sensor code.

What does each sensor measure?

The PMS5003 measures airborne particles as PM1.0, PM2.5 and PM10 in µg/m³ over a 0–500 µg/m³ effective range (datasheet), the SCD41 measures CO2 directly from 400 to 5,000 ppm (datasheet), and the BME280 measures temperature from −40 to +85 °C, humidity from 0 to 100 %RH and pressure from 300 to 1,100 hPa (datasheet). Together they separate dust problems from ventilation problems instead of guessing both from one number.

Does it need internet access to work?

No — the dashboard is hosted by the XIAO board itself on the local Wi-Fi network, and AQI computation, threshold checks and alerts all run on-device, so the monitor works with no internet connection at all, even in a classroom with no broadband. Internet is only needed for the optional MQTT cloud uplink, which sends readings to an external broker for remote viewing.

What power supply does it need?

A 5 V USB-C supply, such as a phone charger or laptop USB port, is enough for the board and all three sensors, and the XIAO also supports a 3.7 V Li-Po battery with on-board charging (datasheet) for portable use. The SCD41 draws up to 205 mA in peaks during measurement (datasheet), so the build powers it from the regulated rail rather than a GPIO pin.

How accurate are the readings?

The readings carry the sensors' datasheet accuracies and are not laboratory-grade: PM2.5 consistency is ±10 µg/m³ at 0–100 µg/m³ (PMS5003 datasheet), CO2 is ±(50 ppm + 2.5% of reading) from 400 to 1,000 ppm (SCD41 datasheet), and temperature is ±1.0 °C from 0 to 65 °C with humidity ±3 %RH (BME280 datasheet). The report states these figures honestly and explains the warm-up and mounting steps that keep them valid.

Is this project suitable for a final-year project?

Yes, for Electronics, Electrical, Instrumentation and IoT & Embedded programs, because it demonstrates sensor interfacing over UART and I2C, embedded Wi-Fi 6 networking with dual-band behaviour, on-device AQI computation, and a working web dashboard that produces measurable results to present and defend. That gives the student real hardware, real networking and real data to discuss in the viva.

Components & software requirements
  • XIAO ESP32-C5 · Arduino / ESP-IDF
  • PMS5003 · SCD41 · BME280 sensors
  • Wi-Fi 6 (802.11ax) · 2.4 GHz + 5 GHz
  • HTML · CSS · JavaScript dashboard
  • UART · I2C sensor buses
  • US EPA AQI breakpoints
  • MQTT (optional cloud uplink)
  • Git
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation