Air pollution is a critical environmental challenge in urban cities. Traditional monitoring stations are limited, expensive, and geographically sparse. This research proposes a distributed, mobile IoT-based air quality monitoring system that uses MQ-135 gas sensors mounted on public vehicles to increase coverage area without deploying multiple stationary sensors. Each unit consists of an MQ-135 sensor, a NodeMCU (ESP8266/ESP32) WiFi module, and is connected to a Django backend, where air quality data is stored in MongoDB. The system calculates the Air Quality Index (AQI), sends real-time data to the cloud, and visualizes city-wide pollution levels. By leveraging public transport as mobile sensing units, the solution achieves high coverage with minimal cost. This paper discusses system design, sensor integration, backend architecture, cloud communication, results, and applications.
Introduction
Rapid urbanization in Indian cities has led to rising air pollution levels, while traditional government monitoring stations remain expensive, sparsely distributed, and slow to respond to localized pollution spikes. To address these limitations, this study proposes a mobile IoT-based air quality monitoring system that uses low-cost MQ-135 gas sensors mounted on public vehicles such as buses, auto-rickshaws, and taxis. As these vehicles move across the city, they collect real-time pollution data and transmit it via NodeMCU WiFi modules to a cloud-based backend.
The system integrates a Django REST API for data ingestion and processing with a MongoDB database for scalable storage of high-frequency sensor data. Real-time Air Quality Index (AQI) values are calculated and visualized through dashboards, while historical analytics support trend analysis and alerts for high-pollution zones. This architecture enables wide spatial coverage, low latency, and efficient city-scale monitoring.
A review of related work highlights gaps in existing solutions, including reliance on fixed sensors, outdated communication methods, and limited backend scalability. The proposed system addresses these gaps by leveraging public transport as a mobile sensing network and using modern web and database technologies.
Results demonstrate that the mobile deployment increases monitoring coverage by 5–10 times compared to stationary systems, with data uploads occurring every 10–20 seconds and an average end-to-end latency of 2–4 seconds. Overall, the study shows that combining mobile IoT sensing with a robust backend architecture offers a cost-effective, scalable, and real-time solution for urban air quality monitoring.
Conclusion
This research presents a scalable, distributed mobile air-quality monitoring system using MQ-135 sensors mounted on public vehicles. The combination of NodeMCU, Django backend, and MongoDB enables a real-time cloud-connected architecture for reliable AQI tracking. By replacing stationary sensors with mobile ones, the system signi cantly increases coverage with minimum investment.
References
[1] World Health Organization, \"Air Pollution,\" WHO Fact Sheets, 2024. [Online]. Available: h ttps://www.who.int/health-topics/air-pollution
[2] Central Pollution Control Board, \"National Air Quality Monitoring Programme,\" CPCB India, 2024.
[3] A. Kumar and G. P. Hancke, \"Energy E cient Environment Monitoring System Based on the IEEE 802.15.4 Standard for Low Cost Requirements,\" IEEE Sensors Journal, vol. 14, no. 8, pp. 2557-2566, Aug. 2014.
[4] R. Jain and S. Nagla, \"IoT Based Real Time Air Quality Monitoring Using MQ-135 Sensor with Arduino,\" International Journal of Engineering Research & Technology, vol. 9, no. 5, pp. 456-462, May 2020.
[5] S. Kularatna and B. H. Sudantha, \"An Environmental Air Pollution Monitoring System Based on the IEEE 1451 Standard for Low Cost Requirements,\" IEEE Sensors Journal, vol. 8, no. 4, pp. 415-422, Apr. 2008.
[6] M. Saad et al., \"IoT Based Air Quality Monitoring System Using MQ135 and MQ7 with Machine Learning for Smart Cities,\" Sustainability, vol. 13, no. 17, p. 9441, 2021.
[7] Hanwei Electronics, \"MQ-135 Gas Sensor Datasheet,\" 2023.
[8] S. De Vito et al., \"Calibrating Chemical Multisensory Devices for Real World Applications: An In-Depth Comparison of Quantitative Machine Learning Approaches,\" Sensors and Actuators B: Chemical, vol. 255, pp. 1191-1210, Feb. 2018.
[9] N. Castell et al., \"Can Commercial Low-Cost Sensor Platforms Contribute to Air Quality Monitoring and Exposure Estimates?\" Environment International, vol. 99, pp. 293-302, Feb. 2017.
[10] A. Kumar, H. Kim, and G. P. Hancke, \"Environmental Monitoring Systems: A Review,\" IEEE Sensors Journal, vol. 13, no. 4, pp. 1329-1339, Apr. 2013.
[11] J. Dutta et al., \"Real-Time Air Quality Monitoring Through Mobile Sensing in Metropolitan Areas,\" IEEE Transactions on Mobile Computing, vol. 16, no. 8, pp. 2195-2209, Aug. 2017.
[12] Django Software Foundation, \"Django Documentation Release 5.0,\" 2024. [Online]. Available: https://docs.djangoproject.com/
[13] MongoDB Inc., \"MongoDB Manual,\" Version 7.0, 2024. [Online]. Available: https://docs.mongodb.com/manual/
[14] Environmental Protection Agency, \"Technical Assistance Document for the Reporting of Daily Air Quality – the Air Quality Index (AQI),\" EPA-454/B-18-007, Sept. 2018.
[15] R. B. Cervero, \"Public Transport and Sustainable Urbanism: Global Lessons,\" Transport and Sustainability, vol. 7, pp. 23-41, 2015.
[16] Central Pollution Control Board, \"National Ambient Air Quality Standards,\" CPCB Noti cation, 2019.