Smart Air Monitor IoT Environmental Monitoring
LIVE

SMART ENVIRONMENTAL MONITORING

IoT-Based Smart Air Pollution Monitoring & Predictive Alert System

Real-time environmental sensing, cloud monitoring, historical analysis and automated predictive alerts.

WHY THIS PROJECT MATTERS

Monitoring the environment before small changes become bigger warnings.

Air conditions can change because of traffic, haze, smoke, indoor activity and other sources. This prototype continuously observes environmental conditions and makes unusual gas changes easier to notice.

Kuala Lumpur skyline covered in haze
01

URBAN AIR

Air pollution can be difficult to notice until it becomes severe.

Haze, traffic and smoke can change the air around populated areas. Continuous sensing helps make environmental changes visible through live readings.

Green canopy at KL Forest Eco Park

HEALTHIER SPACES

Better awareness supports healthier environments.

Urban green space in Kuala Lumpur

ENVIRONMENTAL BALANCE

Smart monitoring connects technology with everyday surroundings.

Green urban park environment

CLEANER SURROUNDINGS

Environmental data gives people a clearer picture of changing conditions.

Urban haze and vehicle-related air pollution in Kuala Lumpur
02

EARLY AWARENESS

Real-time monitoring turns invisible changes into information that can be acted on.

The Smart Air Monitor records temperature, humidity and MQ-135 raw gas readings while classifying the prototype condition as NORMAL, MODERATE or HIGH.

CORE SENSING HARDWARE

Meet the sensing stack.

Three core components power the prototype. Click any card to reveal what it does, then click again to return to the image.

MQ-135 gas sensor module
SENSOR 01

MQ-135 Gas Sensor

Click to flip
ROLE IN THE PROJECT

MQ-135 Gas Sensor

Provides the raw analogue gas reading used by this prototype to identify relative changes in surrounding gas conditions.

Click to return
ESP32 development board
CONTROLLER

ESP32

Click to flip
ROLE IN THE PROJECT

ESP32

The main controller reads the sensors, processes the prototype status and transfers monitoring data through its Wi-Fi connection.

Click to return
DHT11 temperature and humidity sensor
SENSOR 02

DHT11

Click to flip
ROLE IN THE PROJECT

DHT11

Measures ambient temperature and relative humidity so gas readings can be viewed together with surrounding conditions.

Click to return

FROM ENVIRONMENT TO DATA

See what the system is sensing right now.

Continue into the live dashboard for current readings, historical charts, recorded alerts and short-term trend prediction.

Open Live Dashboard ↓
Image credits

Environmental and component imagery is used from Wikimedia Commons and Creative Commons sources. ESP32: Ubahnverleih / Wikimedia Commons (CC0). DHT11: Georgeinza / Wikimedia Commons (CC BY-SA 4.0). Kuala Lumpur haze: Benjy8769 and servus / Wikimedia Commons (CC BY-SA). MQ-135 image: Embarcados, project by Sthefania Fernandes (CC BY-SA 4.0).

Environmental Dashboard

Monitoring Active

CURRENT ENVIRONMENTAL STATUS

CONNECTING...

Waiting for live sensor data...

Current Gas Reading -- MQ-135 Raw
LIVE

Temperature

-- °C

DHT11 Temperature Reading
LIVE

Humidity

-- %

DHT11 Relative Humidity
LIVE

Gas Level

--

MQ-135 Raw Sensor Reading
ESP32 Receiving Data
Firebase Connected
Monitoring Active
!

Moderate Gas Level

Gas readings are elevated. Continue monitoring the environment.

⚠

High Gas Level Detected

Please improve ventilation and move away from the affected area.

Last Updated: Waiting for data...

Historical Monitoring

Recent environmental readings stored in Firebase Realtime Database.

Latest Temperature -- °C
Latest Humidity -- %
Latest MQ-135 --
đŸŒĄī¸

Temperature History

Latest 20 Readings
💧

Humidity History

Latest 20 Readings
đŸŒĢī¸

Gas Level History

Latest 20 Readings

Alert History

Recorded HIGH gas events generated by the monitoring system.

Total Alerts --

Loading alerts...

Short-Term Prediction

Simple linear trend analysis based on recent MQ-135 readings.

CURRENT

Gas Level

--

MQ-135 Raw Reading
→
PREDICTED

Next Gas Level

--

Short-Term Estimate

Current Trend

ANALYSING...

Predicted Status

ANALYSING...

Waiting for enough historical data...

About the System

The Smart Air Monitoring System is an IoT-based prototype designed to monitor environmental conditions in real time, store historical readings in the cloud, detect unusual gas levels and provide short-term trend prediction.

đŸŽ¯

System Purpose

Provide real-time environmental monitoring and early warning of increased gas levels using IoT sensors, cloud storage and a responsive web dashboard.

🔧

Hardware

ESP32 – Microcontroller and Wi-Fi communication

DHT11 – Temperature and humidity sensing

MQ-135 – Gas-sensitive environmental sensor

â˜ī¸

Cloud Platform

Firebase Realtime Database stores current sensor readings, historical records and authenticated gas-alert events.

📊

Monitored Data

Temperature in degrees Celsius

Relative humidity percentage

MQ-135 raw gas sensor readings

đŸšĻ

Prototype Classification

NORMAL 0 – 1300

MODERATE 1301 – 1800

HIGH Above 1800

📈

Trend Prediction

Recent historical MQ-135 readings are analysed using a simple linear trend calculation to estimate the next short-term reading and status.

📱

Native iOS Application

A native iPhone application built using Swift and SwiftUI, connected to Firebase Realtime Database for live monitoring, historical charts, alerts and short-term trend prediction.

i

Important Prototype Note

MQ-135 values displayed by this system are raw sensor readings. They are used for prototype-level relative gas monitoring and should not be interpreted as official AQI or pollutant concentration values such as ppm without proper calibration.

System Data Flow

đŸŒĄī¸ Sensors DHT11 + MQ-135
→
âš™ī¸ ESP32 Processing
→
📡 Wi-Fi Communication
→
â˜ī¸ Firebase Cloud Database
→
đŸ–Ĩī¸đŸ“ą User Interfaces Web Dashboard + Native iOS App
Firebase / ESP32 → Telegram Phone Alert