Built to order

LPG Gas Leakage Detector with Telegram Alert

An LPG gas-leakage detector built on ESP32 with an MQ-2 sensor that sounds a buzzer, switches on an exhaust fan via relay, and pushes instant Telegram alerts to your phone when gas concentration crosses the danger threshold — low cost, high safety relevance, and a long-tail SEO gem.

Electronics / E&TCIoT & Embedded ESP32IoTEmbedded SystemsCloud DatabaseWeb DashboardRelay ControlMQ-6 Gas SensorTelegram BotHybrid
Illustrative render of the LPG Gas Leakage Detector with Telegram Alert prototype.
More project photos (3)

The problem

Gas leaks cause some of the most preventable household accidents in India. This gas leakage detector project using ESP32 continuously monitors LPG concentration with an MQ-2 sensor and responds automatically: a local buzzer raises an alarm, a relay switches on an exhaust fan to ventilate the area, and an instant Telegram message reaches your phone wherever you are. Built on the ESP32's built-in Wi-Fi, it needs no extra GSM module and works with any home router. A compact, low-cost, high-safety-relevance build — ideal as a final year project for ECE, EEE, and electronics diploma students, with complete report, source code, and viva support included.

SYSTEM FLOW

7 components 6 connections

Live flow
Drag to explore
100%
sensorMQ-2 Gas Sensor

Tin-dioxide element changes resistance in the presence of LPG, methane, propane, or smoke.

Follow the working sequence

How it works

  1. The MQ-2 sensor's tin-dioxide sensing element changes resistance in the presence of combustible gases (LPG, methane, propane, smoke).
  2. The ESP32 samples the sensor's analog output every few seconds, smooths the readings, and maps them to a gas-concentration value.
  3. When the value crosses the danger threshold: the buzzer sounds, the relay energizes the exhaust fan, and the ESP32 sends a pre-formatted alert to your Telegram bot.
  4. Once gas levels fall back below the threshold, the system sends an "all clear" message and returns the fan and buzzer to standby.

Project features

  • MQ-2 semiconductor gas sensor calibrated for LPG detection with adjustable sensitivity via onboard potentiometer
  • ESP32 reads analog gas levels continuously and compares against a configurable danger threshold
  • Loud local buzzer alarm triggers the moment the threshold is crossed
  • Relay automatically switches on an exhaust fan (or ventilation system) to disperse leaked gas
  • Instant Telegram alert messages sent to your phone via Telegram Bot API on leak detection and on all-clear
  • Status LED indication for normal, warning, and leak conditions
  • Calibration mode with serial monitor readout to set the right baseline for your room
  • Low component cost — total hardware under typical academic project budgets

What is included

  • Assembled hardware unit (sensor wired and tested)
  • Complete firmware source code (Arduino IDE) with configurable thresholds and Wi-Fi/Telegram credentials
  • Wiring diagram and circuit explanation
  • Report PDF: abstract, block diagram, methodology, results, conclusion
  • PPT presentation for project review
  • Viva Q&A document with expected questions and answers

Advantages

  • MQ-2 semiconductor gas sensor calibrated for LPG detection, with adjustable sensitivity via the onboard potentiometer.
  • Local response the moment the danger threshold is crossed: loud buzzer alarm plus an automatic exhaust-fan switched through a relay to disperse leaked gas.
  • Instant Telegram alert messages on the user's phone for leak detection and for the all-clear, via the Telegram Bot API.
  • Calibration mode with serial-monitor readout to set the right baseline for the room it is installed in.
  • Status LED indication for normal, warning and leak conditions.
  • Low component cost keeps the hardware within typical academic project budgets.

Disadvantages

  • A working Wi-Fi connection is required for Telegram alerts; the local buzzer and exhaust fan work without internet.
  • The MQ-2 detects gas presence, not exact concentration — readings are indicative, and the sensor needs about 1-2 minutes of warm-up after power-on.
  • The sensor should be mounted near floor level since LPG is heavier than air — mounting height affects sensitivity.
  • This is an academic safety demonstration, not a certified commercial gas-safety product.

Limitations & prerequisites

  • Requires a working Wi-Fi connection for Telegram alerts; local buzzer and fan work without internet
  • MQ-2 detects gas presence, not exact concentration — readings are indicative, and the sensor needs ~1–2 minutes of warm-up after power-on
  • The sensor should be mounted near floor level, since LPG is heavier than air — mounting height affects sensitivity
  • This is an academic safety demonstration, not a certified commercial gas-safety product
Components & software requirements
  • ESP32 development board (built-in Wi-Fi)
  • MQ-2 gas sensor module
  • Active buzzer (5V)
  • Single-channel relay module
  • Exhaust fan (12V DC) or equivalent load
  • LEDs and current-limiting resistors
  • Breadboard / PCB, jumper wires, 5V power supply
Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Ahmed, Rahman & Razzak (2023), 2023 IEEE World AI IoT Congress (AIIoT)

Get a quotation