The AQI is an index that tells you how clean or polluted your air is, and what associated health effects might be a concern for you.
The level of pollution has increased with times by a lot of factors like the increase in population, increased vehicle use, industrialization, and urbanization which results in harmful effects on humans by directly affecting the health of the population exposed to it. So, we need to monitor the Air Quality Index. In this project, we are going to make an IoT Based Air Quality Index Monitoring System in which we will monitor the Air Quality Index over a Thingspeak server using the internet. We will use MQ135 Air Quality Sensor that can detect the level of various air pollutants.
Air Quality Index
The AQI is an index for reporting daily air quality. It tells you how clean or polluted your air is, and what associated health effects might be a concern for you. The AQI focuses on health effects you may experience within a few hours or days after breathing polluted air.
Think of the AQI as a yardstick that runs from 0 to 500. The higher the AQI value, the greater the level of air pollution and the greater the health concern. For example, an AQI value of 50 represents good air quality with little potential to affect public health, while an AQI value over 300 represents hazardous air quality.
Circuit Diagram & Connections
Now let us assemble the hardware and do the coding for the great IoT project. We will interface MQ135 Air Quality Sensor with NodeMCU ESP8266 Board and 0.96″ I2C OLED Display. The circuit diagram is given below.
You can assemble the circuit in a breadboard. First, connect the MQ135 Analog input pin to A0 of NodeMCU. Then connect its VCC and GND to NodeMCU Vin & GND respectively. Similarly, 0.96″ OLED Display is an I2C Module. So, connect its SDA & SCL Pin to Nodemcu D2 & D1 Pins. Connect its VCC to 3.3V GND to GND.
Setting up Thingspeak
ThingSpeak is an open-source Internet of Things application and API to store and retrieve data from things using the HTTP and MQTT protocol over the Internet or via a Local Area Network. Thingspeak enables you to collect, store, analyze, visualize, and act on data from sensors.
To set up the Thingspeak Server, visit https://thingspeak.com/ . Create an account or simply sign in if you created the account earlier. Then create a new channel. Copy the API key and use it in the code below.Results
To learn in more detail about this project, you can visit my official website Article Link: https://how2electronics.com/iot-air-quality-index-monitoring-esp8266/