Next Article in Journal
A Numerical Hydration Model to Predict the Macro and Micro Properties of Cement–Eggshell Powder Binary Blends
Next Article in Special Issue
Analyzing the Digital Infrastructure Enabling Project Management Success: A Hybrid FAHP-FTOPSIS Approach
Previous Article in Journal
Green Wave Control Model Simultaneously Considering Passenger Cars and Buses in Closed Road Networks
Previous Article in Special Issue
HMM-Based Blockchain Visual Automatic Deployment System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Low-Cost IoT Air Quality Monitoring Station Using Cloud Platform and Blockchain Technology

by
Ahmed K. Hassan
,
Mohamed S. Saraya
,
Amr M. T. Ali-Eldin
and
Mohamed M. Abdelsalam
*
Computers Engineering and Control Systems Department, Faculty of Engineering, Mansoura University, Mansoura 35516, Egypt
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(13), 5774; https://doi.org/10.3390/app14135774
Submission received: 23 May 2024 / Revised: 27 June 2024 / Accepted: 27 June 2024 / Published: 2 July 2024

Abstract

:
Air pollution is a growing concern due to severe threats to public health and the environment. The need for reliable air quality monitoring solutions has never been more critical. This research paper introduces an innovative approach to addressing this challenge by deploying a low-cost Internet of Things (IoT) air monitoring station and providing a blockchain technology solution to enhance environmental data transparency, reliability, and accessibility. Our paper adopts a concept of merging IoT and blockchain technologies and collecting some parameters that help to assess air quality by using three sensors, DHT11, MQ7, and MQ135, to collect temperature, humidity, carbon monoxide, and carbon dioxide parameters, respectively, to measure the gases and thus indicate the air quality within the surrounding area. Collecting and sharing these types of valuable data will be very important for various stakeholders, such as governmental bodies, researchers, and the public. This approach is consistent with the principles of sustainable development, facilitating informed decision-making and promoting eco-friendly policies. This research explores the technical architecture of the IoT air monitoring stations, offering a promising solution for addressing air pollution concerns while promoting sustainable development goals. The proposed system is a model for leveraging emerging technologies to advance environmental monitoring and create smarter, livable cities. This approach aligns with the principles of sustainable development and eco-friendly initiatives. This research offers a promising model for enhancing environmental monitoring efforts and advancing the creation of smarter, more sustainable urban environments. The proposed IoT, cloud platform and blockchain-based system not only addresses pressing air pollution challenges but also sets a benchmark for leveraging emerging technologies in environmental science.

1. Introduction

Air pollution is a big, complex problem arising from the presence of particulate matter, noxious substances, and biological compounds in the Earth’s atmosphere. This pollution has far-reaching consequences, impacting various forms of life, from humans and animals to food crops, and it can also have a terrible effect on both natural and built environments [1]. Fine particulate matter (PM) has widespread harmful effects, ranging from allergies to severe diseases, including cardiovascular and respiratory conditions, strokes, and lung cancer, which can even lead to death. So, a massive global focus has progressively shifted toward the risk of environmental pollution to the well-being of both ecosystems and humans [2].
Therefore, the motivation for implementing an IoT weather station in the context of climate change-related sustainable development goals arises from the need for accurate and real-time data on weather conditions and pollution levels. Climate change is one of the most profound challenges confronting our world in this era, and its repercussions extend across a wide spectrum, affecting ecosystems, economies, and human beings. Facing climate change and quality of life on earth are included in the Sustainable Development Goals (SDGs) of the United Nations, specifically in numbers 3, 11, 13, and 15 [3]. We need to monitor air quality everywhere in cities, especially in crowded and industrial zones, so there is a great need for IoT air monitoring stations of low cost to monitor the quality of the air continuously throughout the day.
To effectively address climate change and work toward sustainable development, it is crucial to have access to reliable and comprehensive information on weather patterns and pollution levels. Monitoring weather conditions through an IoT weather station can provide valuable data that can be utilized by policymakers, researchers, and communities to make informed decisions and implement a comprehensive strategy to take appropriate action and mitigate the far-reaching and long-lasting impacts of climate change.
Furthermore, IoT weather stations can also contribute to other sectors, such as transportation, agriculture, energy, and water resources. High-accuracy and real-time data obtained from IoT weather stations can be used to optimize transportation routes and schedules, ensuring efficient and safe movement of goods and people. Additionally, the data can inform agricultural practices, allowing farmers to make informed decisions regarding irrigation, planting, and pest control services, ultimately leading to higher productivity and sustainable agricultural practices.
The deployment of cost-effective wireless sensor networks empowers these systems to accurately measure levels of harmful gases, temperature, and humidity. The systems rely on application software for cloud-based data analytics and microcontrollers to process sensory inputs.
Blockchain technology, when merged with the Internet of Things (IoT), delivers a wide range of advantages that have the potential to transform many industries and services. This powerful combination enhances data security, transparency, and efficiency in ways that did not exist before. By providing a secured ledger concept for IoT devices to record and share data, blockchain ensures the integrity of information, making it a game-changer in fields such as supply chain management, healthcare, and environmental monitoring. Also, the promising synergy between blockchain and IoT holds great potential for revolutionizing various industries and applications by providing data integrity and security, transparency, decentralization, scalability, energy efficiency, and sustainable systems.
In the case of this research, like environmental monitoring, blockchain, when merged with IoT, can contribute to sustainable practices by ensuring data transparency and accuracy and promoting eco-friendly policies, which have many environmental benefits.
To address this significant gap in our environmental awareness, a system has been devised. This system employs sensors for detecting carbon monoxide, carbon dioxide, temperature, and humidity. The Arduino Uno, with the microcontroller ATmega, a low-power and cost-effective processing solution, is the central hub for data collection and processing. It offers an ideal low-cost and low-power consumption platform.
The Internet of Things (IoT) and cloud computing are two of the most transformative technologies in this context. The IoT introduces a paradigm where devices autonomously sense, identify, process, and communicate with each other without human intervention. The IoT cloud system affords a consolidated perspective for accessing IoT resources and their capacities through well-defined Application Programming Interfaces (APIs), which conduct their functions within the cloud infrastructure [3]. Information stored within the cloud can be accessed, making it easier to analyze and, ultimately, adding to more effective solutions for managing air pollution to a certain extent.
This paper introduces a solution that provides a low power and relatively low cost way to meet the requirements and needs of many IoT stations covering industrial and crowded wide areas.

2. Literature Review

As a result of the air pollution problem and its dangerous impact on people and human beings, there is much research on air quality and how to detect it with many different methods. One institute conducted an experiment near New Delhi, India, in an industrial zone with a diameter of one kilometer. It found that the parts per million (PPM) was more than 10,000, which is very high and unacceptable because a pollution level exceeding 600 PPM is unsafe for humans [4]. We found many research papers discussing this topic.
A study introduced an architecture designed for low-power wide-area IoT devices. The system uses sensors to detect the presence of harmful gases, transmitting these data seamlessly to a web-based server through a radio frequency (RF) module and common computer. Then, the data stored in the web-based server are analyzed [5].
Another study developed a solution for air monitoring. They used temperature and humidity as parameters to assess the quality of air and build a wireless sensing and monitoring platform consisting of sensors and a microcontroller. The data are stored on a personal computer (PC) and can be accessed remotely via an Android phone [6].
In another study, the authors developed a solution for air quality monitoring using carbon monoxide, carbon dioxide, and smoke as the parameters to evaluate the air quality, measured using the MQ7, MQ135, and MQ6 sensors, respectively. To detect the measurements and process these signals from the sensors, a microcontroller was used, and a liquid crystal display (LCD) screen was used to monitor the data. They added an ESP8266 Wi-Fi module to the system to access it remotely [7].
Other researchers in the same field of air quality monitoring used an Arduino Uno with the MQ7, MQ135, and DHT11 sensors to detect different gases—carbon monoxide, carbon dioxide, and temperature, respectively. Also, they used a GP2Y1010AU0F dust sensor to detect dust and an ESP8266 to connect to the Arduino via a Wi-Fi network to transmit the data to any related server [8].
In [9], the authors used the concept of merging IoT and blockchain technologies to collect air quality measurements by using three sensors, MQ2, MQ7, and MQ135, to collect the parameters of smoke, carbon monoxide, and carbon dioxide, respectively. They measured the gases to indicate the air quality and used the concept of blockchain technology to connect to an Arduino Uno.
Different sensors were used to measure the parameters of monoxide, dioxide, temperature, and humidity, respectively. All of these sensors were connected to an Arduino and then connected to a Raspberry Pi, which sends the data to an online platform and then connects to a cloud service. This results in very high power consumption and a relatively higher cost of this solution [10].
In the paper by [11], the research is also related to climate monitoring. The paper presents a solution consisting of a Raspberry Pi, which is a mini computer on a single chip. It is connected to a DHT11 temperature and humidity sensor and a laptop, which uses software to simulate a blockchain platform.
The above paper presented a solution that uses carbon monoxide, carbon dioxide, and temperature as the parameters to evaluate the air quality by an IoT-based system for a smart healthcare solution. It can track a patient’s current room conditions in real time by connecting MQ9, MQ135, and DHT11 sensors to an ESP32 processor and then sending the data to a web server to assess the health environment for healthcare purposes.
The system in [12] measures variables like humidity, altitude, atmospheric pressure, and the concentrations of dangerous chemicals, like NO2 and CO2, in the atmosphere.
In another study, the MQ-135, DHT-11, and BMP280 sensors were used to collect data, which were processed by the ESP32 board. A fuzzy inference system (FIS) model used a reasoning technique to perform parameter classification and the message queuing telemetry transport (MQTT) protocol to send the gathered data over the Internet to a website [13].
Some other trials have measured air pollution by using different techniques, like hyperspectral imaging (HSI) technology, and combined them with deep learning techniques, such as in [14,15].
Table 1 presents a summary of the references in the literature review. A generic view of air monitoring systems is illustrated in Figure 1.

2.1. Motivations

The motivation for implementing an IoT Air quality monitoring station is to provide an accurate solution that can sense some air quality parameters at a low cost and that is easy to install anywhere. Moreover, we provide a simulation of the Ethereum Blockchain platform to support the concept of decentralization and transparency in the context of the Sustainable Development Goals.

2.2. Contribution

The contribution of this research is providing a reliable air quality monitoring station at a low cost and with low power consumption. Moreover, the ease of use and installment is a very important point. Also, the simulation of blockchain technologies highlights the synergies between blockchain and IoT technologies.

3. Methodology

This paper presents an innovative concept of an IoT Air quality monitoring station with a low cost to detect CO (carbon monoxide), CO2 (carbon dioxide), temperature, and humidity. This system is designed to detect air quality and send it directly to the cloud-based platform ThingSpeak. Also, we conducted a simulation of the blockchain platform using Ganache v2.7.0 software and Truffle v5.11.4 software. A block diagram of the proposed system is shown in Figure 2.

3.1. Sensors

3.1.1. MQ-135

The MQ135 sensor is a gas detector, capable of detecting a large spectrum of gases, including ammonia, benzene, nitric oxide, smoke, and carbon dioxide. It can be operated in both indoor and outdoor environments. Moreover, MQ135 has good sensitivity to carbon dioxide. It is also cost-effective and has a long operational lifespan [16]. The sensor is shown in Figure 3.

3.1.2. MQ-7

The MQ-7 sensor is harnessed to detect carbon monoxide, a primary culprit behind air pollution and the onset of various life-threatening diseases. The MQ-7 is a semiconductor sensor specifically designed for the identification of carbon monoxide (CO). Its sensitive material, SnO2, exhibits lower conductivity in clean air. The sensor is incredibly user-friendly and thoughtfully engineered for accurately detecting CO levels in the atmosphere. It is capable of sensing CO concentrations ranging from 20 to 2000 ppm and is also cost-effective [17]. The sensor is shown in Figure 4.

3.1.3. DHT11

The DHT11 sensor is used to measure temperature and humidity, which are two very important parameters for assessing air quality. This sensor, known for its low cost and very high accuracy, serves as a digital temperature and humidity sensor [18]. The sensor is shown in Figure 5.

3.2. Arduino Uno

The Arduino is a microcontroller board that interfaces with a large number of sensors. It is a simple, very flexible board that can be used in different solutions and in many environments. Combined with expandable peripherals, this board is power-efficient and has a relatively very low cost [19]. The board is shown in Figure 6.

3.3. ESP Wi-Fi Module

The Esp01S module with ESP8266 Wi-Fi is a compact module that is compatible with the Arduino. It is used to provide wireless internet connectivity to various devices. It is a cost-effective single-chip system-on-a-chip (SoC) solution that integrates both Wi-Fi capabilities and a microcontroller, all of which make it an excellent choice for the Internet of Things (IoT) and embedded systems. It is always preferred because of its small size, low power consumption, and ease of use [20]. The module is shown in Figure 7.

3.4. ThingSpeak

ThingSpeak is a web-based open-source platform designed for Internet of Things (IoT) applications [21]. It enables users to gather, analyze, and visualize data from different types of IoT devices, sensors, and applications in real time. It provides a great, well-organized platform for management and good tools to analyze data generated by the connected devices. It is also equipped with a great user-friendly graphical user interface (GUI).

3.5. Hardware Setup

The Arduino Uno R3 microcontroller board is based on the ATmega328. A replaceable chip was used as the central execution device. Thanks to its open-source platform, community, and ease of use, we could manage multiple sensors in parallel. The Arduino Uno R3 has general-purpose input/output (GPIO) pins, and numerous peripherals can be connected to them. Its low power consumption and cost made it a suitable controller board for this research, as sensors can be easily connected and used with it, along with Internet connectivity via Wi-Fi using ESP01S, which includes the ESP 8266 Wi FI module. The MQ-135 Gas sensor, the MQ-7 Gas sensor, and the DHT11 temperature and humidity sensor were responsible for the data acquisition of carbon dioxide, carbon monoxide, and temperature and humidity, respectively. This is available in the 3-pin version. This setup was used to collect the measurements of the air quality station and send them via Wi-Fi directly to the cloud solution platform ThingSpeak. The experimental setup is shown in Figure 8 and Figure 9. The hardware implementation of the air quality monitoring station is illustrated in Figure 10.
The data collection environment:
The experimental data were obtained before sunset and sunrise close to the location of the university campus in normal room conditions. The room had fresh air flow and a window overlooking a moderately crowded street. It was connected to a 4 g connection with a download speed of 56.6 Mbps and an uploading speed 15.3 Mbps.

4. Results and Discussion

The following figure shows the measurements on the ThingSpeak cloud platform, which were gathered from the IoT station sensors.
Figure 11 shows the ThingSpeak platform dashboard, which contained the flow of measurements of carbon dioxide, carbon monoxide, the location of the IoT station, and the bad air quality alarm. The first row shows the measurements for carbon dioxide, which came from the MQ135, and the gauge of the last reading.
The second row shows the measurements for carbon monoxide, which came from the MQ7, and the gauge of the last reading. The third row shows the bad air quality alarm, which turns red if the measurements exceed the zone safe limit. On the right, the location of the IoT station can be seen. Table 2 has a sample of the results gathered by the station.
Figure 11 shows six different graphs (a–f) which provide a good overview of the air quality measurements. The historical and current measurements of the MQ-135 sensor data are shown in graphs (a) and (b), respectively, offering important insights into the patterns and variations in air quality. Similarly, graphs (c) and (d) provide the historical and current measurements of the MQ-7 sensor data, which also help explain the variation in air quality.
Graph (e) shows the alarm that is triggered by low air quality, which is an important signal for possible environmental hazards. Lastly, graph (f) presents the location of the air quality monitoring station. The integration of these graphical representations enhances the understanding of the changes in air quality, which helps with the development of well-informed environmental management and public health strategies.
Table 2 and Table 3 present a comprehensive set of measurements in Mansoura City in a location near the university campus from the MQ135 and MQ7 sensors for the CO2 and CO levels, respectively, along with the temperature and humidity readings. These data were obtained during important periods of the day, before sunset and sunrise, in autumn. The timing of these measurements is important because it provides information on how the environment and air quality changed throughout the day. The results show that there was relatively better air quality in the period of time before sunrise.
Additionally, a comparative analysis of the sensor performance under different environmental conditions can provide valuable insights for optimizing sensor-based monitoring strategies in future studies.
Table 4 and Table 5 present a comprehensive set of measurements in Mansoura City in a location near the university campus from the MQ135 and MQ7 sensors for the CO2 and CO levels, respectively, along with the temperature and humidity readings. These data were obtained during important periods of the day, before sunset and sunrise, in the spring. The timing of these measurements is important because it provides information on how the environment and air quality changed throughout the day. The results show that there was relatively better air quality in the period of time before sunrise.
Table 6 presents a comprehensive set of measurements in Mansoura City in a location near the university campus from the MQ135 and MQ7 sensors for the CO2 and CO levels, respectively, along with the temperature and humidity readings. These data were obtained during the afternoon time on a hot day.
In case more accuracy is needed or measurements are being take in a region with severe weather, we suggest another scenario implementing an advanced sensor solution, as follows:
A Raspberry Pi, which is a single-board computer, can be used as the controller. Connectivity can be established using integrated Wi-Fi and Bluetooth modules. An NDIR CO2 sensor, with exceptional accuracy and reliability, can be used for measuring the CO2 levels, an electrochemical CO sensor, with enhanced accuracy, can be used for CO measurements, a particulate matter sensor (PM2.5/PM10) can be used to detect fine particulate matter, and high-precision sensor can be used for temperature and humidity.
An advanced cloud platform, such as the ThingSpeak paid plan or Azure IoT, can be used.
An advanced paid blockchain solution with optimized mechanisms for scalability, such as the Ethereum paid plan or IBM blockchain solutions, can be used. This scenario offers more sensitivity and accuracy and can be established if there is a need for better accuracy. Equipped with enhanced capabilities but at a higher cost, blockchain technology is able to identify a wider range of harmful substances with better accuracy in zones with severe weather.
By showing these two scenarios, we aim to show the ability to adjust our air quality monitoring station solution across different regions and applications.

5. Blockchain Platform Simulation

This section explains the simulation of exchanging data between stations using the Ethereum Blockchain platform, which uses “Ganache” software to run Ethereum Blockchain on a local machine. It is necessary to use the plugin “Truffle Suite Framework” [22] for initiating, compiling, and migrating smart contracts, all within the “Solidity” programming language.
The simulation tools Ganache and the Truffle Suite operated seamlessly on a personal laptop with the following main specifications: Intel Core i5 processor and 8 GB of RAM. This laptop ran on the Windows 10 operating system, with Ganache version 2.7.0. While we will not delve into a detailed code description, we will provide a brief overview of one of its critical components.
The first line in Algorithm 1 indicates the version of the compiler used by Ganache. This smart contract Solidity code uses “DataExchange,” which allows users to update a string of data associated with their Ethereum addresses using the “ExchangeData” function. The data, which are stored in a public mapping project, are accessible to anyone who needs to read the data associated with specific addresses on the Ethereum Blockchain. The data [Message.Sender] can access the mapping project using the sender’s Ethereum address (Message.Sender) as the key.
Algorithm 1: Data Exchange Algorithm
pragma solidity 0.8.21;
Contract DataExchange
        // Define a public mapping to store data associated with addresses
        Mapping (Address => String) Data
        // Function to exchange data
Function ExchangeData(String Memory NewData)
                // Set the data associated with the sender’s address to the new data
                Data[Message.Sender] = NewData
Another important part of the code is testing a smart contract that simulates the data exchange between two IoT stations, which is described as follows in the form of a pseudo-code in Algorithm 2:
Algorithm 2: Contract Testing Algorithm
1. Define the smart contract: DataExchange
2. Contract Test: DataExchange
-
Setup:
-
Deploy the DataExchange contract.
-
Test: IoT Stations Exchange Data
-
IoT Station 1 deploys DataExchange contract.
-
IoT Station 2 deploys DataExchange contract.
-
IoT Station 1 sends data “Data from IoT Station 1” to DataExchange contract.
-
IoT Station 2 sends data “Data from IoT Station 2” to DataExchange contract.
-
Retrieve data from DataExchange contract for IoT Station 1.
-
Retrieve data from DataExchange contract for IoT Station 2.
-
Assert that data for IoT Station 1 matches “Data from IoT Station 1.”
-
Assert that data for IoT Station 2 matches “Data from IoT Station 2.”
This pseudo-code outlines the steps involved in testing a smart contract for the data exchange between two IoT stations, including the setup, simulated data exchange, and verification of the stored data.

Blockchain Platform Software GUI

The blockchain GUI is shown in Figure 12 and Figure 13. Figure 12 shows the Ganache GUI of the first created workspace IoT air monitoring station that was used to simulate blockchain on the Ethereum platform. It shows an overview of the Ethereum accounts provided by Ganache for development purposes. Each account typically has an address and a test Ether (ETH) balance for simulating transactions. Figure 13 shows the Ganache logs of information at the start of the software code, which helps diagnosis if it is not successfully started and if something is not working smoothly.
Figure 14 shows the testing contracts used to simulate the smart contracts on Truffle to test the process of data exchange. It shows the compilation of the Solidity code to simulate exchange of data between two IoT stations, with total times of 207 ms for execution and 292 ms to pass the test. Also, Figure 15 shows the increase in time with the increasing number of stations sending data, which was also simulated locally on the same machine.

6. Conclusions and Future Work

This research paper highlights the importance of affordable IoT-based air quality monitoring stations that use cloud platform technology, which has some advantages, including (1) a low cost, (2) real-time monitoring and easy accessibility, and (3) a simple design, which makes its application easy and scalable. The disadvantages to note are a relatively long latency time when using Ethereum Blockchain to transfer data, the lack of air quality prediction, which could help in making early warnings to the public, and trend analysis, for which artificial intelligence (AI) is used to identify long-term trends in air quality data.
This reliable access to real-time air quality data empowers individuals and organizations to address air pollution effectively. The integration of cloud platforms streamlines data management, while blockchain ensures data integrity and security. These technologies provide a strong framework for decision-making, public engagement, and sustainable urban planning to combat air pollution and its consequences. Continuous research, cost reduction, and collaboration are vital for further progress in this area, promising a cleaner, healthier, and more sustainable future.
Our solution can overcome many challenges, as follows: the lack of availability and stability of internet network connections in remote areas; extreme weather with very high or low ranges of temperature, which may affect sensor measurements and necessitate other sensors with a higher cost, like the NDIR CO2 sensor with exceptional accuracy and reliability for measuring CO2 levels [23]; the electrochemical CO sensor has enhanced accuracy for CO measurements [24]; the particulate matter sensor (PM2.5/PM10) detects fine particulate matter; the high-precision sensor can be used for temperature and humidity; and the scalability issues of blockchain when applied to wide-range areas with multiple nodes.
These solutions can be further developed in future work. It will be a great benefit to add a real blockchain network transmission and to use AI algorithms to predict the pollution percentage according to the measurement trends. We think this technology can be implemented by adopting the predictive analytics concept using AI models that can forecast future air quality levels based on past data, present readings, and outside variables, like the weather. This might make it easier to notify the public in advance. In addition, carrying out trend analysis and adaptive sampling by applying AI to find long-term trends in data on air quality and modifying the sampling rate in response to changes in the reading variability or the identification of pollution spikes can be important for environmental studies and the development of public policy.

Author Contributions

Conceptualization, M.M.A. and A.M.T.A.-E.; methodology, A.K.H. and M.M.A.; software, A.K.H.; validation, M.M.A. and M.S.S.; formal analysis, A.K.H., A.M.T.A.-E. and M.M.A.; investigation, A.K.H., M.S.S. and M.M.A.; data curation, A.K.H., A.M.T.A.-E. and M.M.A.; writing—original draft preparation, A.K.H., M.S.S. and M.M.A.; writing—review and editing, A.K.H. and M.M.A.; visualization, M.S.S., A.M.T.A.-E. and M.M.A.; supervision, M.S.S., A.M.T.A.-E. and M.M.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Xu, H.; Jia, Y.; Sun, Z.; Su, J.; Liu, Q.S.; Zhou, Q.; Jiang, G. Environmental pollution, a hidden culprit for health issues. Eco-Environ. Health 2022, 1, 31–45. [Google Scholar] [CrossRef] [PubMed]
  2. Ravindra, K.; Singh, T.; Vardhan, S.; Shrivastava, A.; Singh, S.; Kumar, P.; Mor, S. COVID-19 pandemic: What can we learn for better air quality and human health? J. Infect. Public Health 2022, 15, 187–198. [Google Scholar] [CrossRef] [PubMed]
  3. Bachmann, N.; Tripathi, S.; Brunner, M.; Jodlbauer, H. The Contribution of Data-Driven Technologies in Achieving the Sustainable Development Goals. Sustainability 2022, 14, 2497. [Google Scholar] [CrossRef]
  4. System. ICT Systems and Sustainability: Proceedings of ICT4SD 2020; Springer: Singapore, 2021; Volume 1. [Google Scholar]
  5. Zheng, K.; Zhao, S.; Yang, Z.; Xiong, X.; Xiang, W. Design and Implementation of LPWA-Based Air Quality Monitoring System. IEEE Access 2016, 4, 3238–3324. [Google Scholar] [CrossRef]
  6. Shah, J.; Mishra, B. Customized IoT Enabled Wireless Sensing and Monitoring Platform for Smart Buildings. Procedia Technol. 2016, 23, 256–263. [Google Scholar] [CrossRef]
  7. IOIT; AISSMS; IOIT AISSMS. Air and Sound Pollution Monitoring System using IoT. Int. J. Recent Innov. Trends Comput. Commun. 2017, 5, 175–178. [Google Scholar]
  8. Thirunavukkarasu, T.; Ahalya, R.; Amulpriya, J.; Karthikeyan, S.K. Intelligent Retrieval of Ambient Air Quality. Int. J. Res. Trends Innov. 2022, 7, 1830–1834. [Google Scholar]
  9. Benedict, S.; Rumaise, P.; Kaur, J. IoT blockchain solution for air quality monitoring in SmartCities. In Proceedings of the 2019 IEEE International Conference on Advanced Networks and Telecommunications Systems (ANTS), Goa, India, 16–19 December 2019. [Google Scholar]
  10. Kumar, S.; Jasuja, A. Air quality monitoring system based on IoT using Raspberry Pi. In Proceedings of the 2017 International Conference on Computing, Communication and Automation (ICCCA), Greater Noida, India, 5–6 May 2017. [Google Scholar]
  11. Kullig, N.; Lämmel, P.; Tcholtchev, N. Prototype implementation and evaluation of a blockchain component on IoT devices. Procedia Comput. Sci. 2020, 175, 379–386. [Google Scholar] [CrossRef]
  12. Islam, M.; Rahaman, A.; Islam, R. Development of Smart Healthcare Monitoring System in IoT Environment. SN Comput. Sci. 2020, 1, 185. [Google Scholar] [CrossRef] [PubMed]
  13. Fahim, M.; El Mhouti, A.; Boudaa, T.; Jakimi, A. Modeling and implementation of a low-cost IoT-smart weather monitoring station and air quality assessment based on fuzzy inference model and MQTT protocol. Model. Earth Syst. Environ. 2023, 9, 4085–4102. [Google Scholar] [CrossRef] [PubMed]
  14. Chen, C.-W.; Tseng, Y.-S.; Mukundan, A.; Wang, H.-C. Air pollution: Sensitive detection of PM2. 5 and PM10 concentration using hyperspectral imaging. Appl. Sci. 2021, 11, 4543. [Google Scholar] [CrossRef]
  15. Mukundan, A.; Huang, C.-C.; Men, T.-C.; Lin, F.-C.; Wang, H.-C. Air pollution detection using a novel snap-shot hyperspectral imaging technique. Sensors 2022, 22, 6231. [Google Scholar] [CrossRef] [PubMed]
  16. Huanwei Electronics. Datasheet MQ-135 Gas Sensor; Hanwei Elcetronics Co., Ltd.: Zhengzhou, China, 2014. [Google Scholar]
  17. Carbon Monoxide. MQ-7 GAS SENSOR. Available online: http://www.hwsensor.com (accessed on 23 September 2023).
  18. Pleva GmbH. Dht11. Melliand Textilberichte 1995, 76, 1112. [Google Scholar]
  19. Arduino Uno R3 Manual. Available online: https://docs.arduino.cc/resources/datasheets/A000066-datasheet.pdf (accessed on 4 August 2023).
  20. ESP8266 Datasheet. ESP8266EX Datasheet. Espressif Systems Datasheet. Available online: https://www.adafruit.com/images/product-files/2471/0A-ESP8266__Datasheet__EN_v4.3.pdf (accessed on 26 September 2023).
  21. ThingSpeak Documentation. Available online: https://www.mathworks.com/help/thingspeak/lastvisited (accessed on 4 November 2023).
  22. Truffle Documentation. Available online: https://trufflesuite.com/docs/truffle/ (accessed on 25 October 2023).
  23. CO2 Non-Dispersive Infrared (NDIR) Sensor. Available online: www.sstsensing.com (accessed on 5 November 2023).
  24. Zhengzhou Winsen Electronics Technology Ltd. Electrochemical CO Module User’s Manual. Available online: www.winsen-sensor.com (accessed on 4 August 2023).
Figure 1. Generic view of IoT air monitoring solution [11].
Figure 1. Generic view of IoT air monitoring solution [11].
Applsci 14 05774 g001
Figure 2. Block diagram of proposed system.
Figure 2. Block diagram of proposed system.
Applsci 14 05774 g002
Figure 3. MQ135 gas sensor.
Figure 3. MQ135 gas sensor.
Applsci 14 05774 g003
Figure 4. MQ7 gas sensor.
Figure 4. MQ7 gas sensor.
Applsci 14 05774 g004
Figure 5. DHT11 temperature and humidity sensor.
Figure 5. DHT11 temperature and humidity sensor.
Applsci 14 05774 g005
Figure 6. Arduino Uno board.
Figure 6. Arduino Uno board.
Applsci 14 05774 g006
Figure 7. ESP8266 Wi-Fi module.
Figure 7. ESP8266 Wi-Fi module.
Applsci 14 05774 g007
Figure 8. Experimental setup.
Figure 8. Experimental setup.
Applsci 14 05774 g008
Figure 9. Circuit diagram of the air quality monitoring station.
Figure 9. Circuit diagram of the air quality monitoring station.
Applsci 14 05774 g009
Figure 10. Hardware implementation of the air quality monitoring station.
Figure 10. Hardware implementation of the air quality monitoring station.
Applsci 14 05774 g010
Figure 11. ThingSpeak air monitoring station overview.
Figure 11. ThingSpeak air monitoring station overview.
Applsci 14 05774 g011
Figure 12. Ganache development tool GUI.
Figure 12. Ganache development tool GUI.
Applsci 14 05774 g012
Figure 13. Ganache development tool logs.
Figure 13. Ganache development tool logs.
Applsci 14 05774 g013
Figure 14. Smart contract data exchange time between two IoT stations.
Figure 14. Smart contract data exchange time between two IoT stations.
Applsci 14 05774 g014
Figure 15. Smart contract data exchange times of different numbers of IoT stations.
Figure 15. Smart contract data exchange times of different numbers of IoT stations.
Applsci 14 05774 g015
Table 1. Literature review reference summary table.
Table 1. Literature review reference summary table.
Ref.MethodologyUsed SensorsAdvantagesDisadvantages
[5]A microcontroller chip is used to obtain measurements from sensors and send them to a web server via an RF module, using a common computer powered by a lithium battery charged using a solar cell system. PMS5005 sensor
-
Low-power consumption.
-
User-friendly graphical user interface (GUI).
-
High cost.
-
The system’s integration is not easy.
[6]Temperature and humidity are used as parameters to assess the quality of air by using a microcontroller, local computer, and Android application.SHT11 sensorRelatively low power consumption.
-
Needs more sensors than those for the humidity and temperature to give good feedback about air quality.
-
It is difficult to extend the solution to outside of buildings due to the usage of PCs.
-
Relatively high cost.
[7]Carbon monoxide, carbon dioxide, and smoke are used as parameters to evaluate the air quality. The measurement signals are processed from sensors by a microcontroller and then sent to an LCD screen. An ESP8266 Wi-Fi module to was added to the system to access it remotely.MQ7
MQ135
MQ6
LM35
Well-selected sensors, which can be good indicators to assess the air quality.
-
Relatively high cost.
-
Using LCD screens can be expensive and is not necessary in IOT stations.
[8]Using carbon monoxide, carbon dioxide, and dust as parameters to evaluate the air quality. The measurement signals are sent from the sensors to an Arduino and then sent to an LCD screen and via the ESP8266 Wi-Fi module to the local platform.MQ7
MQ135
DHT11
Dust Sensor-GP2Y1010AU0F
The sensor types are good based on their accuracy.
-
Relatively high cost.
-
Using LCD screens can be expensive and is not necessary in IOT stations.
[9]The concept of merging IoT and blockchain technologies is used as a solution for sensing air quality measurements using the parameters of smoke, carbon monoxide, and carbon dioxide. The air quality data are sent to the Arduino Uno using the concept of blockchain technology.MQ2
MQ7
MQ135
Good selection of sensors based on their accuracy and low cost.
-
The system takes a very long time to execute and process data.
[10]Carbon monoxide, carbon dioxide, temperature, and humidity are used as the parameters to measure the degree of air pollution by using an Arduino connected to a Raspberry Pi, which sends the data to an online platform and then connects to a cloud service.MQ9
MQ135
DHT22
-
A good selection of sensors.
-
Very high power consumption.
-
Relatively high cost.
[11]The Raspberry Pi, which is a mini computer with a single chip, is connected to a temperature and humidity sensor, the DHT11, which is connected to a laptop, which uses software to simulate a blockchain platform.DHT11
-
Well-organized solution that simulates blockchain with IoT
-
Lack of sensors.
-
Relatively high cost.
[12]Carbon monoxide, carbon dioxide, and temperature are used as parameters to evaluate the air quality. The data are sent to an ESP32 processor to assess the health environment for healthcare purposes.MQ9
MQ135
DHT11
A good selection of sensors based on their accuracy and low cost.
-
Relatively high power consumption.
-
Relatively high cost.
[13]Variables like humidity, altitude, atmospheric pressure, and the concentrations of dangerous chemicals, like NO2 and CO2, in the atmosphere are measured. An FIS model uses a reasoning technique to perform parameter classification, and the MQTT protocol is used.BMP280
MQ135
DHT11
Well-selected sensors that can be good indicators of air quality.
-
Relatively high power consumption.
-
The system’s integration is not easy.
Table 2. Sample of the results gathered by the station before sunrise in autumn.
Table 2. Sample of the results gathered by the station before sunrise in autumn.
CO2 PPM (MQ135)CO PPM (MQ7)Temperature
(°C)
Humidity
(%)
42339426.861
41339626.861
43440126.863
42338826.863
41238826.863
3943812763
4033842763
3453392763
3463382763
3653392763
3503402763
3543382763
3543382763
3513372763
3523372763
3543372763
3533372763
3223372763
3703382763
3493362763
3443362763
3563382763
Table 3. Sample of the results gathered by the station before sunset in autumn.
Table 3. Sample of the results gathered by the station before sunset in autumn.
CO2 PPM (MQ135)CO PPM (MQ7)Temperature
(°C)
Humidity
(%)
34535123.961
3743502468
3623512464
35934924.265
35835224.265
33435024.365
33332424.468
35434024.468
34934124.469
35134324.469
34433925.268
34133925.168
3673892567
3363712567
3403492568
3433412568
3463352568
34533124.968
34633024.769
34532724.769
34732524.773
Table 4. Sample of the results gathered by the station before sunrise in spring.
Table 4. Sample of the results gathered by the station before sunrise in spring.
CO2 PPM (MQ135)CO PPM (MQ7)Temperature
(°C)
Humidity
(%)
32327127.876
31726227.873
32226327.873
32326327.872
32526427.872
33626927.872
32826427.872
33126627.871
33226627.871
33426627.871
33426527.870
33226427.870
33326427.871
33526527.971
33726627.971
33926527.970
33825927.971
32925627.970
33225627.970
33525827.876
Table 5. Sample of the results gathered by the station before sunset in spring.
Table 5. Sample of the results gathered by the station before sunset in spring.
CO2 PPM (MQ135)CO PPM (MQ7)Temperature
(°C)
Humidity
(%)
34728431.251
34828431.152
34428131.152
34028331.253
34529531.252
34729031.351
34429131.350
34529231.352
34531631.351
34631731.351
34932031.351
35132131.350
35230731.250
35430231.251
35329931.251
35529831.251
35430931.251
35331531.151
35530331.251
35729931.351
35929631.351
Table 6. Sample of the results gathered by the station during afternoon time in summer.
Table 6. Sample of the results gathered by the station during afternoon time in summer.
CO2 PPM (MQ135)CO PPM (MQ7)Temperature
(°C)
Humidity
(%)
35125640.642
35325540.841
35725640.941
3582564141
35925741.241
35925641.341
35925541.440
36325841.440
36025641.540
35625441.640
35024741.740
35324841.741
35325241.740
35625341.742
35625141.841
35825241.840
35925341.939
36025341.940
36025441.939
35925341.740
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hassan, A.K.; Saraya, M.S.; Ali-Eldin, A.M.T.; Abdelsalam, M.M. Low-Cost IoT Air Quality Monitoring Station Using Cloud Platform and Blockchain Technology. Appl. Sci. 2024, 14, 5774. https://doi.org/10.3390/app14135774

AMA Style

Hassan AK, Saraya MS, Ali-Eldin AMT, Abdelsalam MM. Low-Cost IoT Air Quality Monitoring Station Using Cloud Platform and Blockchain Technology. Applied Sciences. 2024; 14(13):5774. https://doi.org/10.3390/app14135774

Chicago/Turabian Style

Hassan, Ahmed K., Mohamed S. Saraya, Amr M. T. Ali-Eldin, and Mohamed M. Abdelsalam. 2024. "Low-Cost IoT Air Quality Monitoring Station Using Cloud Platform and Blockchain Technology" Applied Sciences 14, no. 13: 5774. https://doi.org/10.3390/app14135774

APA Style

Hassan, A. K., Saraya, M. S., Ali-Eldin, A. M. T., & Abdelsalam, M. M. (2024). Low-Cost IoT Air Quality Monitoring Station Using Cloud Platform and Blockchain Technology. Applied Sciences, 14(13), 5774. https://doi.org/10.3390/app14135774

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop