Home > Projects > Sensor – Transducer – Detector Projects > Indoor Air Quality Monitoring System

Indoor Air Quality Monitoring System

Summary of Indoor Air Quality Monitoring System


This article details an IoT-based indoor air quality monitoring system designed to detect toxic gases like LPG, CO2, and CO. The system connects via Arduino boards to the Thinger.io cloud, allowing remote visualization of air quality data on Android devices. It aims to mitigate health risks associated with poor indoor air by providing real-time alerts and data analysis for homes, offices, and industrial settings.

Parts used in the Indoor Air Quality Monitoring System:

  • Arduino Yun Shield & Genuino Yun Shield
  • Arduino Leonardo
  • Arduino Yun
  • Arduino MKR GSM 1400
  • Arduino MKR WAN 1300
  • Seeed Grove - Gas Sensor (MQ2)
  • Seeed Grove - Air quality sensor v1.3
  • Android device
  • Thinger.io Platform
  • Jumper wires
  • Solar panel

An indoor air quality monitoring system for detecting toxic gases.

Things used in this project

Story

Custom parts and enclosures

The git repository for this project

contains APK, source. and others.

Indoor air quality monitoring system based on IoT — Read More

Schematics

circuit diagram

circuit diagram

Code

Arduino yun source
// Air Quality monitoring 
#include <YunClient.h>
#include <ThingerYun.h>

// The Thinger.io cloud
#define USERNAME "YOUR_USER_NAME"
#define DEVICE_ID "YOUR_DEVICE_ID"
#define DEVICE_CREDENTIAL "YOUR_CREDENTIAL"

ThingerYun thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);


void setup() {
  pinMode(A0, INPUT);
  pinMode(A1, INPUT);
  pinMode(A2, INPUT);
  pinMode(A3, INPUT);

  // initialize bridge
  Bridge.begin();


  // resource output example (i.e. reading a sensor value, a variable, etc)
  thing["LPG"] >> outputValue(analogRead(A0)); // optional 
  thing["CO2"] >> outputValue(analogRead(A1));
  thing["CO"] >> outputValue(analogRead(A2));
  thing["AIRQ"] >> outputValue(analogRead(A3));

  // more details at http://docs.thinger.io/arduino/
}

void loop() {
  thing.handle();
}

Source : Indoor Air Quality Monitoring System

Quick Solutions to Questions related to Indoor Air Quality Monitoring System:

  • How does the system connect to the internet?
    The system uses Arduino boards like the Yun or MKR series connected to the Thinger.io cloud platform for connectivity.
  • What sensors are used to detect gas levels?
    The project utilizes Seeed Grove Gas Sensor MQ2 and Seeed Grove Air quality sensor v1.3 along with MQ-3 sensors.
  • Can users view data remotely?
    Yes, anyone can remotely visualize the air quality index from anywhere using a mobile application connected to the IoT cloud.
  • What happens if the device is offline?
    If the device is offline, the mobile application will not show any data and may display NaN values.
  • Which software environment is required for programming?
    Users need the Arduino IDE or Arduino Web IDE along with specific libraries to upload the firmware.
  • What are the potential applications for this system?
    Possible domains include homes, offices, industries, remote sensing for firefighters, research, agriculture, hospitals, and ICU units.
  • How are the sensor signals connected to the Arduino?
    The signal pins connect to analog inputs A0, A1, A2, and A3 on the Arduino board.
  • What future improvements are planned for the project?
    Future plans include adding onboard indicators, buzzer-based alarms for high pollution, and push notifications for hazardous situations.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top