Short Communication - International Research Journal of Engineering Science, Technology and Innovation ( 2025) Volume 11, Issue 1
Received: 09-Oct-2023, Manuscript No. irjesti-24-116176; Editor assigned: 12-Oct-2023, Pre QC No. irjesti-24-116176 (PQ); Reviewed: 26-Oct-2023, QC No. irjesti-24-116176; Revised: 10-Jan-2025, Manuscript No. irjesti-24-116176 (R); Published: 17-Jan-2025, DOI: 10.14303/2315-5663.2025.120
The Internet of Things (IoT) represents a global network of intelligent devices capable of sensing their environment and engaging with users and other interconnected systems. In our current era, one of the paramount concerns is the escalating issue of worldwide air pollution. This pollution has surged over time due to various factors, including population growth, increased vehicular activity, industrial expansion, and urbanization, culminating in detrimental consequences for human well-being. These detrimental effects are particularly pronounced among populations directly exposed to the pollution. Air quality deteriorates as the concentration of harmful gases such as carbon dioxide, smoke, benzene, Ammonia (NH3), and Nitrogen Dioxide (NO2) in the atmosphere reaches critical levels.
Internet of Things (IoT), Population growth, Carbon dioxide, Global network, Intelligent device
Air, an indispensable element in our environment, comprises a mixture of gases, including Nitrogen, Oxygen, Carbon Monoxide, and trace elements (Matthews VO et al., 2018). The presence of clean, uncontaminated air is vital for human and life. Any alteration in the natural composition of the atmosphere can have severe consequences for all living organisms on Earth. Air pollution is characterized by the presence of various contaminants in the air, typically in quantities that can be detrimental to humans, animals, and plants (Arun Raj V et al., 2017). These contaminants are quantified using units such as Parts per Million (ppm). Primary pollutants are substances released directly into the atmosphere, while secondary pollutants are generated through chemical reactions involving primary pollutants and other atmospheric compounds (Wei-Ying Yi et al., 2016). The quality of air has impact on public health. The impacts of air pollution encompass a wide spectrum of health issues, including difficulties in breathing, persistent coughing, and the exacerbation of conditions like asthma and emphysema. Additionally, polluted air can severely limit visibility (Sani AB et al., 2019). Shockingly, air pollution is responsible for an alarming 7 million premature deaths globally each year, equating to one in every eight premature fatalities annually. Particularly alarming is the fact that nearly 570,000 children under the age of five succumb to respiratory infections associated with indoor and outdoor pollution as well as exposure to second-hand smoke. Children exposed to air pollution face an elevated risk of developing chronic respiratory ailments like asthma (Ullo SL et al., 2020). In response to the pressing issue of air pollution, researchers worldwide have developed models to monitor various polluting gases, such as Sulphur Dioxide (SO2), Carbon Monoxide (CO2), Nitrogen Oxides (NO), and more (Asha P et al., 2022). This paper primarily centers on the creation and implementation of an intelligent air pollutant monitoring system. It delves into the methodology of utilizing a gas sensor, ESP-32 and DHT11 to gauge pollutant levels in air (Cynthia J et al., 2019). The primary objective of this research is to devise a smart air pollution monitoring system capable of continuously observing, analyzing, and transmitting real-time air quality data to a remote server via the internet, thus ensuring the data remains current and accessible for informed decision-making (Idrees Z et al., 2018).
System design
An IoT-based environmental pollution monitoring system utilizes interconnected components to gather and process data for real Power supply Figure 1. Block diagram. ESP-32: Esp-32 is known as system on chip microcontroller. It is a powerful and flexible microtroller which has gained more popularity recently in makers and IoT communities due to its feature and affordability. It features a dual core processor which allows it to handle tasks efficiently. It has built in Wi-Fi and bluetooth capabilities, making it easy to connect to the internet and communicate with the other devices wirelessly. It consists of 30 pins, which include GPIO pins, Power pins, analog pins, UART, SPI, I2C, PWM and control pins. Gas sensor: The gas sensor used is of variant MQ-2. It is sensitive to gases like carbon monoxide, methane, propane, sulphur dioxide and other combustible gases including smoke. It is a vital component in the field of environmental monitoring and safety applications. MQ-2 relies on a heated Metal Oxide Semiconductor (MOS) to measure changes in ISSN: 2315-5663 time pollution tracking. In this system, the ESP32 microcontroller serves as the central control unit. It interfaces with the MQ-2 gas sensor and the DHT11 temperature and humidity sensor. These components are represented as blocks in the block diagram. The ESP32 reads data from the MQ-2 sensor to detect various gases like carbon monoxide, methane, and smoke, while the DHT11 measures temperature and humidity levels. These readings are transmitted via the internet to a central server for data analysis and visualization. Arrows in the diagram show the flow of data from the sensors to the ESP32 and then to the server, depicting the functional relationships and information flow within the system (Figure 1).
Figure 1. Block diagram.
Power supply
ESP-32: Esp-32 is known as system on chip microcontroller. It is a powerful and flexible microtroller which has gained more popularity recently in makers and IoT communities due to its feature and affordability. It features a dual core processor which allows it to handle tasks efficiently. It has built in Wi-Fi and bluetooth capabilities, making it easy to connect to the internet and communicate with the other devices wirelessly. It consists of 30 pins, which include GPIO pins, Power pins, analog pins, UART, SPI, I2C, PWM and control pins.
Gas sensor: The gas sensor used is of variant MQ-2. It is sensitive to gases like carbon monoxide, methane, propane, sulphur dioxide and other combustible gases including smoke. It is a vital component in the field of environmental monitoring and safety applications. MQ-2 relies on a heated Metal Oxide Semiconductor (MOS) to measure changes in resistance when exposed to target gases. MQ-2 sensor features a 4 pin configuration including VCC (Power Supply), Analog Out (AO), Digital Out (DO), Ground (GND).
DHT11: The DHT11 sensor, a digital temperature and humidity sensor, has emerged as a corner stone in the domain of IoT enabled environmental monitoring. It operates based on a capacitive humidity sensing element and a calibrated digital signal processing chip. When exposed to environment, the sensor’s humidity-sensitive capacitor undergoes changes in capacitance due to variations in humidity levels. The sensor’s internal processor converts these changes into digital temperature and humidity readings, which are interfaced with microcontrollers. DHT-11 sensor features a 4 pin configuration including VCC (Power Supply), Data Out, Not Connected (NC), Ground (GND).
LCD: Ground 16×2 LCD displays are based on liquid crystal technology. Each character position consists of a matrix of pixels, and liquid crystal cells control the passage of light through these pixels. By selectively activating and deactivating these cells, characters and symbols are ISSN: 2315-5663 displayed on the screen. Microcontrollers send data and commands to the LCD to control what is displayed (Figure 2).
Figure 2. Power supply.
Design steps and process
Pin connections
Figure 3. System design.
Steps to install Arduino IDE
Steps to install ESP-32 board in Arduino IDE
Code logic
The code begins by including various libraries for components such as the liquid crystal display, Wi-Fi, HTTP Client, DHT11 temperature and humidity sensor, and more.
It sets up the Wi-Fi connection using the provided SSID and password to connect to a local network.
Variable declarations: It declares variables for HTTP communication, sensor data, pins for various components (like LCD, buzzer, and smoke sensor), and strings to build the HTTP request payload.
Setup Function (setup):
Main loop (loop):
Custom functions (iot_send, beep, okcheck, serialEvent, gpsEvent, get_gps, coordinate2dec, gps_convert, convlat, convlong, converts, convertl):
The image below shows the experimental setup of our project which displays output on LCD (Figure 4).
Figure 4. Output on LCD.
Temperature is displayed on LCD. It produces Buzzer indication when reached to 40 (Figure 5).
Figure 5. Temperature is displayed on LCD.
Humidity is displayed on LCD. It produces Buzzer indication when reached to 86 (Figure 6).
Figure 6. Humidity is displayed on LCD.
Initially Smoke-Gas is OFF, which indicates there is no detected gas. When MQ-2 is exposed to smoke of a burning paper the produced carbon dioxide is detected by sensor and displays ON (Figures 7 and 8).
Figure 7. Smoke gas is OFF.
Figure 8. Smoke-Gas is On.
Go to http://projectsfactoryserver.in/index.php and login to see observations (Figures 9 and 10).
Figure 9. Login page.
Figure 10. Observation values of temperature, humidity, smoke gas with date.
We have successfully designed and implemented an IoT based environment pollution monitoring system using our experimental kit. Through a series of tests and data collection, we have obtained valuable insights into the environmental conditions of our target area. This not only enhances our understanding of environmental conditions but also enables us to take proactive measures in addressing pollution issues.
[Crossref] [Google Scholar] [PubMed]
[Crossref] [Google Scholar] [PubMed]
[Crossref] [Google Scholar] [PubMed]