Skip to content
MCU Atlas

AirCube: ESPHome desk air-quality cube with charts

An all-in-one ESPHome air monitor showing temperature, humidity, CO2 and PM2.5 with 12-hour trend charts on a small screen.

Difficulty:IntermediateSource available

Photos

AirCube: ESPHome desk air-quality cube with charts photo 1
AirCube: ESPHome desk air-quality cube with charts photo 2
AirCube: ESPHome desk air-quality cube with charts photo 3
AirCube: ESPHome desk air-quality cube with charts photo 4

Photos: ohdarling/AirCube

Key Facts

  • Chip: ESP32
  • Sensors: CO2, PMS5003, temp/humidity
  • Framework: ESPHome
  • Integration: Home Assistant, Domoticz (MQTT)

About This Project

AirCube is a compact cube-shaped environment monitor running ESPHome. A small display shows an overview page, per-sensor detail pages (e.g. PM1/PM2.5/PM10) and 12-hour history charts, navigated with buttons. Data goes to Home Assistant or Domoticz over MQTT, and scripts support deploying multiple units. The main README is in Chinese with an English version.

Source & Attribution

Source: GitHub
License: MIT
Last verified: 10/15/2026
AirCube: ESPHome desk air-quality cube with charts

How to Build It

AirCube is a small desk cube that monitors air quality. It reads CO2, PM2.5, temperature and humidity, shows charts and device info on a small TFT, and reports to Home Assistant or Domoticz (via MQTT). The firmware is ESPHome, built with a helper script.

Parts Needed

  • ESP32 board (the project uses a custom PCB)
  • Plantower PMS5003 particulate sensor
  • CO2 sensor (e.g. SenseAir S8)
  • Temperature/humidity sensor (BME280 or SHT31)
  • Small TFT display
  • 3D-printed enclosure

Steps

  1. 1

    Build the PCB

    Order the PCB from the repo, solder the parts listed in the component selection notes, then assemble the cube enclosure.

  2. 2

    Install the tools

    Install ESPHome and esptool.py, which the build script uses.

  3. 3

    Choose options

    The Firmware folder's build.sh takes environment variables to swap sensor models (e.g. TEMP=sht31) and set things like a static IP for OTA updates.

  4. 4

    Build and flash

    Run ./build.sh upload to compile and flash in one step over USB. Later updates can go over the air to the fixed IP.

  5. 5

    Integrate

    Add the device in Home Assistant, or point it at your MQTT broker for Domoticz.

Bill of Materials

Parts list

4 parts · 4 linked

Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works

Not included: 3D-printed case, wire, solder, USB cable

Download CSV

Related Projects

ESPHome indoor air-quality monitor (CO2, PM2.5)
Illustration
ESP32
An ESPHome config for a DIY air-quality monitor measuring CO2, particulates, temperature, humidity and pressure.
Beginner·Code
5 parts listed
Smart Meteo: battery e-ink CO₂ and air monitor
Illustration
ESP32ESP32-C6
A battery-powered ESP32-C6 e-ink CO₂ and air-quality monitor that runs months per charge, joins Home Assistant over MQTT or Matter, and keeps everything local.
Advanced·Code
7 parts listed
CO2 Monitor That Fails Visibly: SCD30 ESPHome node with real fault handling
Illustration
ESP32ESP32-C3
An ESPHome/Home Assistant CO2 node engineered so a dead sensor reads unknown and raises a fault, never a frozen last-good number. SCD30 + XIAO ESP32-C3.
Beginner·Code
4 parts listed