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.

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
- The MQ-6 output voltage rises when LPG is in the air.
- The Nano compares it with a safe limit.
- Above the limit: the servo turns the knob off, the relay starts the 12V exhaust fan, the buzzer sounds.
Parts you need
Kit for this projectPrice on request
Get the kitWiring

PowerGroundSignal
| # | From | Connect to |
|---|---|---|
| 1 Signal | MQ-6 AO | Nano A0 |
| 2 Power | MQ-6 VCC | Nano 5V |
| 3 Ground | MQ-6 GND | Nano GND |
| 4 Signal | Buzzer + | Nano A1 |
| 5 Ground | Buzzer − | Nano GND |
| 6 Signal | Servo signal | Nano A2 |
| 7 Power | Servo red | Nano 5V |
| 8 Ground | Servo brown | Nano GND |
| 9 Signal | Relay IN | Nano A3 |
| 10 Power | Relay VCC | Nano 5V |
| 11 Ground | Relay GND | Nano GND |
| 12 Power | Relay COM + NO | 12V 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.