MQ-2 Gas/Smoke Sensor with Arduino Interfacing

How does it work?

The voltage that the sensor outputs changes accordingly to the smoke/gas level that exists in the atmosphere. The sensor outputs a voltage that is proportional to the concentration of smoke/gas.
In other words, the relationship between voltage and gas concentration is the following:
  • The greater the gas concentration, the greater the output voltage
  • The lower the gas concentration, the lower the output voltage
    smokepicture
The output can be an analog signal (A0) that can be read with an analog input of the Arduino or a digital output (D0) that can be read with a digital input of the Arduino.



Code

0 Comments