/mq2-cigar-sensor

An Arduino Sketch for MQ2 Smoke Sensor to detect cigarette smoke for ATmega328P Boards

Primary LanguageC++MIT LicenseMIT

mq2-cigar-sensor

C++ Arduino

An Arduino Sketch for MQ2 Smoke Sensor to detect Cigarette Smoke using ATmega328P boards

Pre-Requisities

  • Arduino IDE
  • Arduino UNO
  • MQ2 Smoke Sensor
  • Wires
  • Soldering Kit

Circuit Diagram

Untitled

Theory

We can measure PPM values using MQ2 sensor and a cigarette emits Carbon Monoxide(CO) as the main output gas so we're calibrating the MQ2 sensor to detect Carbon Monoxide levels and detect cigarettes.

Required Arduino Libraries

  • MQUnifiedSensor by Miguel Califa