MuTech RoboticsLearning Hub
Adults onlyArduino NanoLevel 2/3

Gas Leak Auto-Shutoff

An MQ-6 sensor smells LPG. Within a second a servo turns the stove knob off, a fan starts and an alarm sounds.

Gas Leak Auto-Shutoff
Adults only

Involves LPG, a gas stove and flame.

Not for children. Build at your own risk.

This is a DIY safety aid, not a certified gas safety device. The MQ-6 needs 24–48 h burn-in and calibration.

Strictly follow the description given with this video.

Video

The video link will be added here soon.

How it works

  1. The MQ-6 output voltage rises when LPG is in the air.
  2. The Nano compares it with a safe limit.
  3. Above the limit: the servo turns the knob off, the relay starts the 12V exhaust fan, the buzzer sounds.

Parts you need

  • Arduino Nano× 1Buy
  • MQ-6 gas sensor× 1Buy
  • SG90 servo× 1Buy
  • 5V relay module× 1Buy
  • Buzzer× 1Buy
Kit for this projectPrice on request
Get the kit

Wiring

Wiring diagram
PowerGroundSignal
#FromConnect to
1 SignalMQ-6 AONano A0
2 PowerMQ-6 VCCNano 5V
3 GroundMQ-6 GNDNano GND
4 SignalBuzzer +Nano A1
5 GroundBuzzer −Nano GND
6 SignalServo signalNano A2
7 PowerServo redNano 5V
8 GroundServo brownNano GND
9 SignalRelay INNano A3
10 PowerRelay VCCNano 5V
11 GroundRelay GNDNano GND
12 PowerRelay COM + NO12V exhaust fan circuit

3D print files

  • knob_gripper.stlPETG · 0.2 mm · no supportsLink at launch
  • servo_bracket.stlPETG · 0.2 mm · no supportsLink at launch

Code

The tested Arduino / ESP32 code for this project will be posted here, ready to copy.