Keywords

1 Introduction

Air pollution monitoring systems are primarily a measure of the severity of air pollution, and higher numbers indicate that air quality is more dangerous to human health. The unexpected weather that has occurred in our country in recent months has exposed the environment to natural disasters, resulting in a particularly foggy environment. Fog definitely affects the specific area where the fire is occurring [1,2,3,4,5]. On the other hand, industrial waste such as non-supplied gas can affect the atmosphere, especially near industrial parks. These days, people who want to have an air pollution monitoring system have to pay a lot of money to install it because it is expensive. The large size makes it uncomfortable to wear. These systems are often used by government agencies and large companies with industrial plants to monitor air quality. The paper has been suggested to be portable, requires a cheaper version of the air pollution monitoring system, has a lower cost of materials, and is readily available from the Arduino and Node MCU [6,7,8,9,10].

The main objective of this work is the disinfection of unpolluted cities and people in our country. Air pollution estimates in smart cities these days are becoming very erratic, and there is a certain period of time to detect air pollution without knowing whether the air pollution has filled up or not. This leads to air pollution in some areas, causing unrelated diseases. Therefore, the proposed work starts monitoring all kinds of pollution to keep cities clean. When air pollution is not controlled, send a message to higher authorities at a specific place. This reduces pollution and increases human health. This is how our project helps the community maintain a good environment [11,12,13,14,15,16].

There are several steps to be achieved at the end of this work [17, 18]. They are:

  1. (a)

    Design of low-cost portable air pollutant monitoring systems that use gas sensors

  2. (b)

    Integration of Sensor, Arduino, and Node MCU to form a complete air pollution monitoring system.

  3. (c)

    Transmission and reception of air pollution data via short message service (SMS) using the Node MCU.

Various areas for achieving the purpose of the process work are described in steps [19, 20]

  1. (i)

    Detection of ambient air pollutants using appropriate sensors and signal conditioning circuits.

  2. (ii)

    Create a suitable codec to read the sensor data to the Arduino.

  3. (iii)

    The data received from the Arduino creates an appropriate command for the Node MCU and sends the data to Short Message Service (SMS).

  4. (iv)

    Connect the cloud server and monitor the data online.

The paper is divided into six main parts, and each one can be conceptually divided into two parts.

The first introduction relates to the capabilities monitoring unit, and the second relates to the vision unit. In Sect. 2, we analyze past applications of air pollution systems and the articles in the literature that inspire us to develop this project. In Sect. 3, we describe the theoretical and practical technical background applied to the development of this project. Section 4 introduces the hardware interface problem, starts with the common features, and then gets into the details that will show you how to build the unit step by step. Section 5 introduces hardware functioning and results. Finally, Sect. 6 presents results and conclusion remarks with results obtained from real-world scenarios of air pollution systems and some potential use cases, also final session to explain some suggestions for future work.

2 Background

2.1 IoT-Based Air Quality Solution

Close monitoring is a particularly difficult part of air quality management. In order to monitor the entire cities, many monitoring stations are required to continuously monitor the air quality, which makes it difficult for experts to accurately measure the level of urban air pollution and its impact on urban life. The advent of the Internet of Things (IoT) could change these challenges. Advances in low-power wide-area networks (LPWA) have increased the availability of small, always-on handheld sensors.

With low data rates and long distances, LPWA sensors can be connected to bicycles, outdoor furniture, or people to measure and report air quality more regularly and accurately. The power of big data, such as weather and transport, can improve the background of the data and can provide insight into the causes and changes in air pollution levels. While they are reluctant to replace traditional monitoring networks, governments around the world are investing in policies and partnerships to find IoT-based air quality solutions. For example, Chongqing is currently working with China Mobile to improve the weather with built-in sensors. Quality control, on the other hand, Telefónica and Orange works with cities in Portugal, Spain, France, and Brazil [18].

Kim and Paulos [19] have developed and implemented a system called air that can measure, visualize, and transmit data on indoor air quality. Air quality from the DC 1100 is used to measure indoor air pollution, an AVD-based Arduino is built into an air quality monitor, and the iPod Touch processes, displays, and transmits data to the Arduino wirelessly. Data is transmitted every 15 s while the Arduino encodes the data as a series of beeps. It is like the iPod Touch reading your modem through the microphone port. We can use Wi-Fi to exchange real-time data from a central server.

Air pollution is a vital issue for a country. An air polluted country falls prey to many different environmental issues and health hazards. Recently in India, there are various debatable and questionable conditions which arises when it comes to air pollution, cause, from different foreign surveys it is found that, the air quality in India is very hazardous, and it is one of the worst’s in the world ranking [12]. In 2002, continuous air quality monitoring was commenced through the establishment continuous air quality monitoring station (CAMS) by Department of Environment (DoE) under the worlds bank financed Air Quality Management Project (AQMP) [15]. But there is no organization or any government projects that work in detail on air pollution and air quality. There are some international websites where they display the live air quality and unfortunately, they do not have enough data about India’s air quality in their database. For India, the AQI measured by US embassy is followed widely. But the problem remains about the accuracy because the measurement device is installed on the premise of US embassy, and it can only detect quality of the surrounding air. This value cannot represent the AQI for all the cities, even the other part of Delhi City [21,22,23,24,25].

  • The main goal of our work is to detect the gases responsible for air pollution and measure the air quality and view the pollution level so that we can evaluate which gases are responsible for pollution in which area the most and in which rate the air is being affected.

3 Experimental Studies

This section describes the project methodology applied to the project. Guidelines are used to complete the project from start to finish. The procedure includes several activities implemented under the project: successful completion [26].

3.1 System Design

This session will discuss in detail the progress made in the development of a real-time air quality reporting system. Thus, this chapter deals with the design and construction of the original system as shown in Fig. 1. The system can be divided into two types: Those are description of hardware and software implementation [23].

Fig. 1
figure 1

a Block diagram of air quality monitoring and sensing. b Block diagram of sending the data to ThingSpeak using NodeMCU

3.2 Hardware Development Part

The low-cost system consists of the Arduino and Node MCU sensor node system. To connect Wi-Fi and fast monitoring of the sensors data Node MCU included in the work, which accesses the network easily and remote server. Arduino Uno interfaces with DHT11 sensor for monitoring temperature and humidity of the given environment and process the data based on threshold value with reference of the other sensors those are barometric pressure and air quality sensor, which are interfacing with Node MCU. The gas sensor are detecting the carbon dioxide and carbon monoxide gases with reference of pressure and DHT11 sensors [14].

The threshold values are adjusted in the system as per the quality standards of air. This can continuously monitor with IoT could server-ThinkSpeak. Users can access the data either by using Android mobile or by Internet. When the gases have reached above the threshold value, the system has sent immediate alarm to the users. So they immediately save their lives, and also, the proposed system has connected exhaust fans to exhaust the gas from that environment. The detailed hardware has shown in the block diagram Fig. 1.

3.3 Software Development Part

The process of the software development has given in flowchart Fig. 2. Flowchart for system programming, another flowchart is for displaying temperature, humidity and air quality on an LCD. Results of the obtained data to send temperature, humidity to ThingSpeak in order to display the data.

Fig. 2
figure 2

Flowchart: programming for the system

4 Results and Discussions

Connections

As shown in the picture, 3 DHT11 voltages are connected to ground +5 and 0 V, and all signal pins of Arduino Uno can be connected to 8 pins, and the rest of the components like MQ135 voltage level and ground to +5 V and analog PIN connectors. The analog pins of the Arduino Uno [22] are connected to A0 (Fig. 3).

Fig. 3
figure 3

Connections of Arduino with LCD

  • As shown in the picture, 4 RS pins to pin 12, pin 11, pin 4 to digital pin 5, D5 to digital pin, D6 to pin 2, R7 W pin to ground, VSS pin to ground, VCC to 5 pin V, resistor from 10 kΩ to +5 V and output to ground and dehumidifier VO PIN (Fig. 4).

    Fig. 4
    figure 4

    Temperature and humidity display on LCD

The DHT11 info buttons connect to the digital pin of the MCU node, and the MQ135 connects to the analog pin as shown in Fig. 5.

Fig. 5
figure 5

Connection of DHT11 and MQ135 with NodeMCU

4.1 Process Code Execution Process

Programs are written using Arduino software (IDE) as shown in the figure are called sketches. The editor has the ability to cut/paste and find/modify text. The scope of the message provides feedback on recording and exporting and also indicates errors.

The console displays text results through the Arduino software (IDE), including error messages and other information. The configuration board and serial port are displayed in the lower right corner of the window. The toolbar button allows us to test and load applications, sketch, open and save, and open serial monitors [24] (Fig. 6).

Fig. 6
figure 6

ThingSpeak cloud server data display

The complete proposed work execution of the program is shown in Fig. 7

Fig. 7
figure 7

Execution state of the proposed work

The proposed work is well-advanced, and the sensors are easily accessible, simple, compact, and convenient to use. The sensors have a longer lifespan and are less expensive. Air quality can be checked both indoors and outdoors and determines a wide range of physical parameters, including carbon dioxide. The proposed work will be implemented in several directions, depending on the type of environment. This is indoor air quality monitoring. Monitoring of industrial parameters and roadside pollution monitoring is available to the common man [24].

5 Device Impact

In this chapter, we have discussed the different impacts of the device in different aspects. Besides this we have also discussed cost analysis and economic impact of this device.

5.1 Health and Safety Impact

Our prototype model is designed in a way, so that it can be helpful to people with safety issues. In recent days, in our society gas leakage is a common incident nowadays. Many people lose their valuable lives because of this. For this reason, we have designed a prototype model of air pollution monitoring system where our system will automatically detect harmful gas presence. After detecting, our system will send the SMS by using ThinkSpeak. So we can see, for health and safety issues our system can bring a very powerful impact on society [11].

5.2 Lower Energy Consumption

Another major problem of our society is wastage of energy, and in recent days, this problem is becoming more acute. As the fastest developing country, many factories and mega malls are being established, and as a result, we are facing the energy problem. To reduce these kinds of problem, many agendas and project works are developing but still this problem has not been solved properly. So we all should come forward in order to solve excess energy consumption; otherwise in near future, we will face more energy issues. As it is designed for rooms and open areas, so it can be installed in home, office, schools, colleges, and many more places easily. It only consumes 5 V power supply. As a result, huge amount of energy and electricity can be saved [15].

5.3 Cost Analysis and Economic Impact

There are many systems related to air pollution monitoring system available in the market but most of them are highly priced and not affordable for every person. But our system is an integrated system which has many important features and its easily affordable for any person. Because it only costs under 2000 Rupees, most importantly our system can be installed in many places, like room of homes, office rooms, schools, colleges, or university classroom. So it is really an additional plus point for our prototype model that it can perform multiple important operations at a time as well as it costs very less than the air pollution monitoring system available in market [16,17,18,19,20].

6 Conclusions

The proposed IoT-based air pollution system consists of a hardware that include Arduino and Node MCU with various types of sensors. The proposed system implements a combination of Android applications, server, and gas sensor (CO2 and DHT11) to detect ambient air quality and display the actual air condition. Detects parameters causing contamination, each time the parameter level increases, the sensor detects the situation and sends a message to the authorized person via the Node MCU. Authorities can close down the power in polluting area via the Internet of Things. Sensors synthesize this information and send it to the web for real-time monitoring. This allows you to detect air pollution in different areas and take steps to prevent it. There is also a temperature sensor that estimates the room temperature. The proposed system is accurate and dynamically provides current situation at any place to check the air quality. The proposed system can be installed in every industry to monitor the various types of the emissions check the hazards for human. The system is also implemented in the home to check the air quality.