Salah UddinIoT-Bangladesh
Published © LGPL

Indoor Air Quality Monitoring System

An indoor air quality monitoring system for detecting toxic gases.

AdvancedFull instructions provided5 days110,473
Indoor Air Quality Monitoring System

Things used in this project

Story

Read more

Custom parts and enclosures

The git repository for this project

contains APK, source. and others.

Schematics

circuit diagram

circuit diagram

Code

Arduino source code

Arduino
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();
}

Credits

Salah Uddin

Salah Uddin

44 projects • 148 followers
Technology and IoT Hacker, Robot Killer and Drone lover.
IoT-Bangladesh

IoT-Bangladesh

19 projects • 49 followers

Comments