Back
MQ-2 Gas Sensor
Sensors

MQ-2 Gas Sensor

Detects LPG, smoke, methane and similar gases.

Definition

An analog gas sensor whose resistance changes when target gases are present.

AI Application

Used in AI safety systems to classify smoke vs. cooking vs. real fire and reduce false alarms.

Parts & pins

1
VCC

5V power input

2
GND

Ground reference

3
DO

Digital output (HIGH/LOW)

4
AO

Analog output (0–Vcc)

5
Heating Element

Heats the sensing layer

6
Sensing Layer (SnO₂)

Resistance drops with target gas

Works with

Hardware you can wire this part to in a typical project.