Interfacing Mq2 Sensor With Arduino Uno

The MQ2 gas sensor that detect the various type of gases like LPG, propane, methane, carbon monoxide, alcohol and smoke. it is commonly using in the gas leakage detection and air quality monitoring.

interfacing mq2 sensor with arduino

To connect the MQ2 sensor with Arduino is done by proper wiring. you need to take care of the pinout of the Mq2 gas sensor.

MQ-2 VCC -> Arduino 5V
MQ-2 GND -> Arduino GND
MQ-2 OUT -> Analouge and digital pinout

Programming Code

Complete code and library files are Github