<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>A Design and Implementation of a Cloud-Integrated IoT Framework for Real-Time Urban Air Quality</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Muniz</surname><given-names>Sheila Maria</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Esdauletova</surname><given-names>Isametova Madina</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<aff id="aff1">Municipal Secretary of Education of Jijoca de Jericoacoara, 62598-000 Jijoca de Jeric., CE, Brazil.</aff>
<aff id="aff2">Satbayev University, 050000 Almaty, Kazakhstan.</aff>
</contrib-group>
<abstract><p>The rapid urbanization of cities worldwide has led to a significant increase in air pollution, posing severe health risks to urban residents. High costs, limited coverage, and a lack of real-time capabilities often limit traditional air quality monitoring methods. This paper proposes a novel IoT-based Air Pollution Monitoring (APMIoT) system designed to accurately track and evaluate urban air quality. The system utilizes a Raspberry Pi Pico W with wireless capabilities and multiple sensors to monitor Particulate Matter (PM), Carbon Dioxide (CO₂), Total Volatile Organic Compounds (TVOCs), humidity, temperature, and GPS location. The APMIoT modules transmit real-time data to a cloud-based platform, which manages data collection, visualization, and analysis from a distributed network of APMIoT sensors across urban spaces. The system leverages FreeRTOS for modular programming, facilitating efficient and independent processing and data transmission.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>IoT monitoring</kwd><kwd>Air quality monitoring</kwd><kwd>Measuring algorithms</kwd><kwd>APMIoT</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1"><label>1</label><title>Introduction</title>
<p>Air quality is a critical aspect of urban living, directly impacting public health and well-being. Elevated pollutant levels can result in respiratory illnesses, cardiovascular diseases, and premature mortality. Traditional air quality monitoring stations often face limitations in terms of cost, limited coverage, and a lack of real-time data capabilities. Internet of Things (IoT) technology presents a promising solution for comprehensive and cost-effective air quality monitoring in urban areas. By leveraging IoT devices and sensors, it is possible to establish a dense network of monitoring stations, enabling real-time data collection and analysis <xref ref-type="bibr" rid="ref-1">[1]</xref>.</p>
<sec id="sec-2"><label>1.1</label><title>The Silent Threat: A Deep Dive into Air Pollution</title>
<p>Air, an invisible yet vital component of our existence, has been silently deteriorating due to the relentless march of industrialization and urbanization. The once pristine air we breathe is now laden with a cocktail of harmful pollutants, posing a significant threat to human health and environmental sustainability. From the bustling metropolises to the serene countryside, the pervasive issue of air pollution has become a global concern. The insidious nature of these pollutants, often imperceptible to the naked eye, makes their impact even more alarming. As we delve into the complexities of air pollution, it becomes evident that understanding its sources, consequences, and mitigation strategies is imperative for safeguarding our planet and its inhabitants <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
</sec>
<sec id="sec-3"><label>1.2</label><title>Internet of Things</title>
<p>The IoT refers to the network of physical objects or &quot;Things&quot; embedded with sensors, software, and other technologies that connect and exchange data with other devices and systems over the internet. These devices, from household appliances to industrial machines, collect and share data, enabling automation and smarter decision-making across various applications. By gathering real-time data, IoT applications enhance everything from smart homes and healthcare to transportation, environmental monitoring, and industry, transforming how we interact with the world <xref ref-type="bibr" rid="ref-3">[3]</xref>.</p>
</sec>
<sec id="sec-4"><label>1.3</label><title>Air Quality Monitoring</title>
<p>Monitoring air quality is essential for keeping track of pollution levels, which directly affect our health, the environment, and the climate. As cities expand and industries grow, harmful pollutants in the air, like small Particulate Matter (PM), Nitrogen Dioxide (NO₂), Sulfur Dioxide (SO₂), Carbon Monoxide (CO), and Ozone (O₃), become more common, leading to health risks. Tracking these pollutants helps governments, health groups, and communities understand pollution sources and develop ways to address them.</p>
<p>In the past, monitoring air quality required expensive, fixed equipment that could only cover limited areas and often couldn&apos;t provide live updates. With the help of the IoT, air quality tracking has become more advanced and affordable. IoT-based systems use small sensors that collect real-time data from multiple places simultaneously, giving a clearer picture of pollution levels. This data allows communities and policymakers to make informed decisions that help protect public health and create cleaner, healthier urban spaces <xref ref-type="bibr" rid="ref-4">[4]</xref>.</p>
</sec>
<sec id="sec-5"><label>1.4</label><title>Impact of Air Pollution</title>
<p>Air pollution causes millions of premature deaths each year. Fine Particulate Matter (PM10) is a major threat due to its ability to penetrate the respiratory system. Regulations are in place to control air pollution levels <xref ref-type="bibr" rid="ref-5">[5]</xref>.</p>
</sec>
<sec id="sec-6"><label>1.5</label><title>Types of Air Quality Analysis</title>
<p>There are indoor and outdoor air quality analyses. Indoor air quality analysis involves testing the air within buildings. Outdoor air quality analysis can range from basic screenings to complex modeling. The type of analysis needed depends on factors like project size and potential pollutants.</p>
</sec>
<sec id="sec-7"><label>1.6</label><title>How IoT Can Help</title>
<p>IoT technology revolutionizes air quality monitoring by enabling continuous, automated, and accessible tracking of pollutants in urban and industrial environments. Here&apos;s how it benefits real-time air quality monitoring:</p>
<p>I. Continuous data collection: small, energy-efficient IoT sensors can monitor air pollutants like CO, NO₂, PM, and Volatile Organic Compounds (VOCs) in real time. These sensors operate 24/7, collecting continuous data without human intervention, and can be deployed across large areas, from city centers to industrial sites.</p>
<p>II. Affordable and scalable networks: unlike traditional, costly monitoring stations that cover limited areas, IoT devices are much more affordable and easy to deploy. This makes it possible to create an extensive network of sensors that provide wide coverage and granular insights into pollution levels across a broad geographic area.</p>
<p>III. Instant alerts: IoT systems can be set up to issue real-time alerts if pollutant levels exceed safe thresholds.</p>
<p>This enables local authorities, businesses, and residents to take immediate action. For example, schools, hospitals, and workplaces can be alerted to issue health advisories or limit outdoor activities when air quality worsens.</p>
<p>IV. Accessible data and analysis: IoT platforms typically use cloud technology to store, process, and visualize air quality data. This allows easy access to data from any location through apps or dashboards. Furthermore, AI and Machine Learning (ML) models can be applied to analyze trends and even predict pollution spikes, helping develop informed strategies for pollution control.</p>
<p>V. Community awareness and policy development: IoT-enabled air quality data makes pollution information easily available to the public, fostering greater health awareness. This data also aids policymakers in creating strategies that address pollution, like managing traffic congestion, regulating emissions, and planning urban greenery <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Abbreviations and key concepts.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:66,293.2,537.1,456.1"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
</sec>
<sec id="sec-8"><label>2</label><title>Literature Review</title>
<p>Research on IoT&apos;s role in air quality monitoring has gained considerable attention. A study published in &quot;Real-time air quality monitoring in smart cities using IoT-enabled advanced optical sensors&quot; (the international journal of artificial intelligence, Vol. 15, No. 4, 2020) proposes an IoT framework utilizing inexpensive sensors to monitor key pollutants in alignment with World Health Organization (WHO) guidelines. This framework emphasizes the importance of data accuracy and highlights the potential of cloud-based analytics for enhanced pollution surveillance and prediction. Another relevant study, &quot;IoT-based air quality monitoring system with ML for accurate and real-time data analysis&quot; <xref ref-type="bibr" rid="ref-7">[7]</xref>, investigates the use of ML algorithms for data analysis alongside IoT sensors. This approach can significantly improve air quality monitoring systems&apos; accuracy and real-time capabilities <xref ref-type="bibr" rid="ref-7">[7]</xref>, <xref ref-type="bibr" rid="ref-8">[8]</xref>.</p>
<sec id="sec-9"><label>2.1</label><title>IoT Approach with Real-Time Alerts and AWS Integration for Air Quality Monitoring</title>
<p>This environmental monitoring system uses an affordable ESP-WROOM-32 device to collect live data about air quality and other environmental factors. The device takes in raw data and then cleans and labels it using a simple method, making it more accurate. This processed information is sent to Amazon Web Services (AWS) so users can easily access it anytime. Its low-power design makes the system reliable for continuous, real-time monitoring in various weather conditions. It provides a simple, cost-effective way to track environmental changes and helps people make informed decisions about air quality and pollution <xref ref-type="bibr" rid="ref-8">[8]</xref>.</p>
<sec id="sec-10"><label>2.1.1</label><title>Data collection</title>
<p>This dataset contains hourly readings from 5 chemical sensors deployed in a heavily polluted Italian city for one year. The data provides insights into seasonal and temporal air quality variations. However, the dataset has limitations like sensor cross-sensitivities, concept shifts, and sensor changes, which can affect the accuracy of concentration estimates. Careful analysis is needed to mitigate these biases <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>Proposed diagram.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:3:66,424.9,537.1,620"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
</sec>
<sec id="sec-11"><label>2.2</label><title>IoT-Based Air Quality Monitoring</title>
<p>This paper proposes an IoT-based air quality monitoring system using an ESP-WROOM-32 microcontroller. The system is designed to measure various environmental parameters, including:</p>
<fig id="fig2"><label>Figure 2</label><caption><p>IoT-based air quality monitoring.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:3:66,154.5,537.1,366.3"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>Air pollutants: PM2.5, PM10, O3, CO, NO2, and NH3.</p>
<p>Climate factors: temperature and humidity.</p>
<p>The collected data is transmitted to an AWS IoT Core for storage and analysis. Key components of the system include:</p>
<p>Hardware: ESP-WROOM-32 microcontroller.</p>
<p>Sensors: PMSA003, MQ-131, MICS-6814, DHT22 Software: Firmware for data collection and transmission, AWS IoT Core for data storage and analysis <xref ref-type="bibr" rid="ref-8">[8]</xref>, <xref ref-type="bibr" rid="ref-11">[11]</xref>.</p>
<sec id="sec-12"><label>2.2.1</label><title>Flow chart</title>
<p>I. Input from MQ3, MQ135 is taken in the format of analog and sent to the ESP8266.</p>
<fig id="fig3"><label>Figure 3</label><caption><p>Block diagram of data acquisition, transmission, and processing in the IoT-based air quality monitoring system.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:4:66,332.5,537.1,646.1"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>II. The Wi-Fi module connected to the nearby Wi-Fi sends the data to ThingSpeak and the Blynk IoT platform. III. The raw data from the sensors is sent to ThingSpeak.</p>
<p>IV. The calculated ppm values are sent to the Blynk IoT mobile application.</p>
<p>V. The data collected on ThingSpeak is exported as a CSV file and processed using a ML algorithm for air quality prediction.</p>
</sec>
<sec id="sec-13"><label>2.2.2</label><title>Algorithm</title>
<p>The following algorithm is followed to collect data.</p>
<p>Set up the device:</p>
<p>I. Configure the device with your Wi-Fi network details and Blynk account information.</p>
<p>II. Set up the sensors (MQ-3 and MQ-135) to measure air quality and alcohol levels.</p>
<p>Connect to the internet:</p>
<p>I. Connect the device to your Wi-Fi network.</p>
<p>Measure and send data:</p>
<p>I. Every second, the device measures the air quality and alcohol levels using the sensors.</p>
<p>II. It calculates the values and sends them to a cloud platform called ThingSpeak.</p>
<p>III. It also displays the real-time values on a mobile app called Blynk.</p>
<p>Analyze data:</p>
<p>I. The data stored on ThingSpeak can be analyzed to identify trends, patterns, and anomalies.</p>
<p>II. This analysis can help understand air quality conditions and potential risks.</p>
</sec>
<sec id="sec-14"><label>2.2.3</label><title>Limitations</title>
<p>Despite the promising potential of IoT-based air quality monitoring systems, this study presents several limitations that must be acknowledged.</p>
<p>I. The proposed design has not yet been validated through large-scale field deployment; hence, the real-time accuracy and calibration stability of the low-cost sensors remain uncertain. Environmental factors such as humidity, temperature fluctuations, and cross-sensitivity among gas sensors can lead to measurement drift over time <xref ref-type="bibr" rid="ref-12">[12]</xref>.</p>
<p>II. The system’s reliance on wireless connectivity (Wi-Fi or LPWAN) introduces potential data loss or latency issues, particularly in dense urban areas with network congestion.</p>
<p>III. The current framework does not include advanced data analytics or predictive algorithms that could provide early warnings or pattern detection.</p>
<p>IV. Privacy concerns associated with location-based data collection were not deeply analyzed, and energy consumption optimization at the sensor level requires further investigation <xref ref-type="bibr" rid="ref-13">[13]</xref>.</p>
</sec>
<sec id="sec-15"><label>2.2.4</label><title>Future work</title>
<p>Future research will focus on transforming this conceptual framework into a fully functional prototype and validating its performance under real-world urban conditions.</p>
<p>In the next phase, multiple sensor nodes will be deployed across selected city zones to evaluate spatial accuracy, latency, and system scalability. Integration of ML techniques will enable predictive modeling of air quality trends and anomaly detection.</p>
<p>Furthermore, edge computing will be incorporated to minimize data transmission delays and reduce cloud dependency <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
<p>To strengthen security and transparency, blockchain-based data authentication can be explored for reliable sensor data exchange <xref ref-type="bibr" rid="ref-14">[14]</xref>.</p>
<p>Lastly, long-term studies on sensor calibration, power efficiency, and citizen participation through crowdsourced sensing will be conducted to enhance the sustainability and reliability of IoT-enabled environmental monitoring systems.</p>
</sec>
</sec>
</sec>
<sec id="sec-16"><label>3</label><title>Conclusion</title>
<p>To sum up, IoT technology is revolutionizing the field of air quality monitoring, especially in densely populated areas where pollution levels have a profound impact on public health and ecosystems. Through deploying IoT sensors across large areas, it is now possible to continuously monitor harmful pollutants like CO, NO₂, PM, and VOCs in real-time, providing vital data on pollution. This system is more affordable and flexible than traditional monitoring stations, which are limited in coverage and real-time monitoring capabilities. Furthermore, IoT platforms store and analyze data in the cloud, making it accessible to many stakeholders—including policymakers, scientists, and the general public. This ease of access facilitates the rapid identification of pollution trends and enables prompt responses when pollutant levels reach unsafe limits. IoT technology supports long-term environmental management strategies through advanced data analysis and alerts. IoT-powered air quality monitoring enhances awareness, promotes healthier communities, and supports evidence-based policymaking.</p>
</sec>
<sec id="sec-17"><title>Funding</title>
<p>This research received no external funding.</p>
</sec>
<sec id="sec-18"><title>Data Availability</title>
<p>The raw data underpinning the findings of this IoT-based air quality monitoring system are available upon reasonable request from me. These data, which can be provided in various formats such as CSV or Excel, foster transparency, reproducibility, and further exploration of the research findings. To ensure appropriate access and utilization, interested parties should contact me directly to discuss specific data requirements and any necessary permissions.</p>
</sec>
<sec id="sec-19"><title>Conflicts of Interest</title>
<p>The authors declare no conflicts of interest regarding the publication of this paper.</p>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Malleswari, S., &amp; Mohana, T. K. (2022). Air pollution monitoring system using IoT devices. Materials today: proceedings, 51, 1147–1150. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.matpr.2021.07.114">https://doi.org/10.1016/j.matpr.2021.07.114</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Shahid, S., Brown, D. J., Wright, P., Khasawneh, A. M., Taylor, B., &amp; Kaiwartya, O. (2025). Innovations in air quality monitoring: Sensors, IoT and future research. Sensors, 25(7), 2070. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s25072070">https://doi.org/10.3390/s25072070</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Gololo, M. G. D., Nyathi, C. W., Boateng, L., Nkadimeng, E. K., Mckenzie, R. P., Atif, I., … &amp; Mellado, B. (2024). Review of IoT systems for air quality measurements based on LTE/4G and lora communications. IoT, 5(4), 711–729. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/iot5040032">https://doi.org/10.3390/iot5040032</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Munera, D., Aguirre, J., &amp; Gomez, N. G. (2021). IoT-based air quality monitoring systems for smart cities: A systematic mapping study. International journal of electrical and computer engineering, 11(4), 3470–3482. 10.11591/ijece.v11i4.pp3470-3482</mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Gueye, A., Drame, M. S., &amp; Niang, S. A. A. (2024). A low-cost IoT-based real-time pollution monitoring system using ESP8266 NodeMCU. Measurement and control, 00202940241306690. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1177/00202940241306690">https://doi.org/10.1177/00202940241306690</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Buelvas, J., Múnera, D., Tobón V, D. P., Aguirre, J., &amp; Gaviria, N. (2023). Data quality in IoT-based air quality monitoring systems: A systematic mapping study. Water, air, &amp; soil pollution, 234(4), 248. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s11270-023-06127-9">https://doi.org/10.1007/s11270-023-06127-9</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Karnati, H. (2023). IoT-based air quality monitoring system with machine learning for accurate and real-time data analysis. <ext-link ext-link-type="uri" xlink:href="https://arxiv.org/abs/2307.00580">https://arxiv.org/abs/2307.00580</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Aserkar, A. A., Godla, S. R., Baker El-Ebiary, Y. A., &amp; Naga Ramesh, J. V. (2024). Real-time air quality monitoring in smart cities using IoT-enabled advanced optical sensors. International journal of advanced computer science &amp; applications, 15(4). <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.14569/ijacsa.2024.0150487">https://doi.org/10.14569/ijacsa.2024.0150487</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>Gadekar, M. C. S. (2022). Air quality index (AQI) basics. International journal of research publication and reviews, 3(1), 805–807. <ext-link ext-link-type="uri" xlink:href="https://www.researchgate.net/profile/Deepak-Gadekar/publication/378975308_Air_Quality_Index_AQI_Basics/links/65f47d15286738732d4d458e/Air-Quality-Index-AQI-Basics.pdf">https://www.researchgate.net/profile/Deepak-Gadekar/publication/378975308_Air_Quality_Index_AQI_Basics/links/65f47d15286738732d4d458e/Air-Quality-Index-AQI-Basics.pdf</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>De Vito, S., Massera, E., Piga, M., Martinotto, L., &amp; Di Francia, G. (2008). On field calibration of an electronic nose for benzene estimation in an urban pollution monitoring scenario. Sensors and actuators b: chemical, 129(2), 750–757. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.snb.2007.09.060">https://doi.org/10.1016/j.snb.2007.09.060</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Nguyen, H., Nguyen, K., Sridharan, S., &amp; Fookes, C. (2023). Aerial-ground person re-id. 2023 IEEE international conference on multimedia and expo (ICME) (pp. 2585–2590). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICME55011.2023.00440">https://doi.org/10.1109/ICME55011.2023.00440</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Nalakurthi, N. V. S. R., Abimbola, I., Ahmed, T., Anton, I., Riaz, K., Ibrahim, Q., … &amp; Gharbia, S. (2024). Challenges and opportunities in calibrating low-cost environmental sensors. Sensors, 24(11), 3650. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s24113650">https://doi.org/10.3390/s24113650</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Karagulian, F., Barbiere, M., Kotsev, A., Spinelle, L., Gerboles, M., Lagler, F., … &amp; Borowiak, A. (2019). Review of the performance of low-cost sensors for air quality monitoring. Atmosphere, 10(9), 506. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/atmos10090506">https://doi.org/10.3390/atmos10090506</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>Garcia, A., Saez, Y., Harris, I., Huang, X., &amp; Collado, E. (2025). Advancements in air quality monitoring: A systematic review of IoT-based air quality monitoring and AI technologies. Artificial intelligence review, 58(9), 275. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s10462-025-11277-9">https://doi.org/10.1007/s10462-025-11277-9</ext-link></mixed-citation></ref>
</ref-list></back>
</article>