Salah Uddin
Published © LGPL

Toxic Gas Sensing System based on Internet of Things

With this system we are able to determine the presence of toxic gas in our environment. Remotely determine the gas level is also possible.

IntermediateFull instructions provided12 hours2,556
Toxic Gas Sensing System based on Internet of Things

Things used in this project

Hardware components

Seeed Studio Gas Sensor(MQ2)
×1
Seeed Studio Gas Sensor(MQ3)
×1
SparkFun Gas Sensor(MQ7)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Thinger.io Platform
Thinger.io Platform

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Circuit Diagram

Code

Gas_sensing_source_code

Arduino
//please add the thinger.io lib for arduino, using arduino library manager.
//please add the thinger.io lib for arduino, using arduino library manager.
// or check the thinger.io documentation

#include <YunClient.h>
#include <ThingerYun.h>

#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);
  Bridge.begin();
  thing["LPG"] >> outputValue(analogRead(A0));
  thing["ALCOHOL"] >> outputValue(analogRead(A1));
  thing["CO"] >> outputValue(analogRead(A2));
}

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

Credits

Salah Uddin

Salah Uddin

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

Comments