A large office building had a problem with high CO2 levels. Our task was to bring them under control and, while we were at it, cut energy use. We built an IoT stack of LoRa sensors, Telegraf, InfluxDB, Kapacitor and Chronograf. It measures air quality continuously, alerts building managers the moment CO2 crosses a safe threshold, and gives them the data they need to run the building more efficiently.
TL;DR
- The problem: high CO2 levels in a large office building.
- The stack: LoRaWAN CO2 sensors, The Things Network, Telegraf (MQTT), InfluxDB, Kapacitor and Chronograf.
- The outcome: CO2 levels kept within safe limits, and a reduction in peak energy consumption of 80% once building managers could act on motion and CO2 data.
Project goals
The project aimed to:
- Gather and analyze air quality data continuously.
- Notify building managers when air quality changes.
- Reduce energy consumption significantly by turning the data into actionable insights.
The technology stack
Sensor data flows through the stack like this:
LoRaWAN sensors → The Things Network → MQTT → Telegraf → InfluxDB → Kapacitor (alerts) and Chronograf (dashboards)
1. LoRa network: sensors across the building
- Long-range communication: LoRa transmits data over long distances with minimal power consumption, which made it a good fit for monitoring an entire building.
- Deployment: we installed LoRaWAN-enabled CO2 sensors throughout the building for full coverage and real-time data transmission to central gateways.
2. Telegraf: collecting the data
- Data collection: Telegraf agents gather the data from the LoRa sensors and feed it directly into InfluxDB.
- Integration: the MQTT input plugin moves the sensor data collected on The Things Network (TTN) into the central database, so the data is available in real time.
3. InfluxDB: time-series storage
- Built for time series: InfluxDB handles high-frequency, time-stamped data efficiently, which is crucial for continuous monitoring.
- Data storage: the database stores CO2 levels, temperature and humidity with precise timestamps, enabling detailed analysis over time and a review of historical data.
4. Kapacitor: real-time alerts
Kapacitor processes and analyzes the data in real time and notifies building managers instantly when CO2 levels exceed safe thresholds.
5. Chronograf: dashboards
Chronograf visualizes the data from all sensors, giving building managers a clear picture of what they need to do to keep air quality at the right level.

Results
- Better air quality: continuous monitoring and alerts to building managers kept CO2 levels within safe limits, contributing to a healthier indoor environment.
- Lower energy use: with notifications on motion and CO2 levels, building managers could manage the HVAC systems and reduced peak energy consumption by 80%.
- Real-time insight: the combination of LoRa, InfluxDB, Telegraf, Kapacitor and Chronograf made it possible to manage air quality and energy use proactively instead of reactively.
Why this stack works
Each component does one job well: LoRa for connectivity, Telegraf for data collection, InfluxDB for data management, and Kapacitor and Chronograf for real-time alerts and visualization. Together they form a robust system that improved air quality and optimized energy use at the same time.
Planning an IoT or automation project?
At Coding Delta we build custom IoT solutions around specific business needs, designed to be scalable and reliable. If you want sensor data to trigger alerts and actions automatically, see how we approach AI and automation, or use the button below to discuss your project with us.
Curious what this could do for you?
We're happy to think along — over coffee on the Keizersgracht or on a video call.
