Indoor Air Quality Monitoring System




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




Leave a Comment

*
= 3 + 4

(Spamcheck Enabled)

Read previous post:
These-Monthly-Arduino-Project-Kits-Are-an-Awesome-Way-to-Learn-Coding-and-Electronics
These Monthly Arduino Project Kits Are an Awesome Way to Learn Coding and Electronics

If you’ve recently found yourself spending too much time looking at memes on your phone, or you’ve noticed you are...

Close
Scroll to top