Gas Leakage Project Report (1) - 2
Gas Leakage Project Report (1) - 2
A DISSERTATION REPORT
on
IOT Based Gas Leakage Detection Using Arduino
Submitted in Partial Fulfillment of the requirement for the award of the degree of
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
Submitted By
CHANDU S 1MV21CS024
NEELESH KUMAR SINGH 1MV21CS060
NEHA PRAVEEN 1MV21CS061
NIDHI HARISH K 1MV21CS063
Carried out at
Project Lab,
Department of CSE,
SIRMVIT
CERTIFICATE
This is to certify that the project work entitled “Based Gas Leakage Detection Using
Arduino” is a bonafied work carried out by CHANDU S (1MV21CS024), NEELESH
KUMAR SINGH (1MV21CS060), NEHA PRAVEEN (1MV21CS061), NIDHI HARISH
K (1MV21CS063) in partial fulfillment for the award of Bachelor of Engineering in
Computer Science and Engineering of Visvesvaraya Technological University, Belagavi
during the year 2024-2025. It is certified that all corrections/suggestions indicated for internal
assessment have been incorporated in the report. The project report has been approved as it
satisfies the academic requirements with respect to project work prescribed for the Bachelor of
Engineering degree.
1.
2.
DECLARATION
CHAPTER - 1
INTRODUCTION
1.1 Overview
Gas leakage is one of the most common and dangerous hazards, particularly in residential,
industrial, and commercial environments. Undetected gas leaks can lead to catastrophic
accidents, including explosions and fires, resulting in loss of life, property damage, and
environmental harm. To mitigate such risks, early detection and prompt alert mechanisms are
crucial. In this project, we developed an IoT-based Gas Leakage Detection and Alert System
that leverages modern wireless technology to ensure real-time monitoring, instant alerts, and
active preventive measures. The system uses an MQ-5 gas sensor, capable of detecting gases
like LPG, methane, and natural gas with high sensitivity. Upon detecting a gas leak, the system
immediately activates a buzzer and LED for local alerts, displays real-time gas readings and
warning messages on an LCD screen, and automatically controls a servo motor to close the gas
valve for safety.
Simultaneously, the system updates the gas status on the Blynk IoT mobile application, sends
an email alert through SMTP integration, and triggers a Telegram Bot notification to the
registered user for multi-channel alerts. The core of the system is built around the ESP32
microcontroller, which provides integrated Wi-Fi capabilities for seamless cloud
communication without the need for external modules. By utilizing the Blynk cloud platform,
users can monitor the system's status remotely from anywhere, while the SMTP and Telegram
integrations ensure that critical alerts are received even if the mobile application is inactive.
This project emphasizes a cost-effective, reliable, and easily deployable solution for gas
leakage detection, offering not only real-time monitoring and instant multi-platform
notifications but also active safety interventions through automatic valve control. Overall, the
system enhances safety standards and offers a scalable foundation for future improvements
such as automatic ventilation, gas shut-off, and advanced analytics to further minimize risks
associated with gas leaks.
CHAPTER – 2
LITERATURE SURVEY
In the past three years, significant advancements have been made in gas leakage detection
systems using Arduino microcontrollers. The 2022 study by V. Gaur et al. introduced a system
utilizing MQ-series sensors with IoT integration via Arduino to enable real-time monitoring
and immediate cloud updates. It emphasized reliable early detection but noted the need for
energy-efficient design for long-term installations.
The 2021 paper by A. Sharma and R. Kumar proposed an Arduino Uno-based system interfaced
with an MQ-6 sensor and GSM Module. It successfully sent SMS alerts when gas leaks were
detected, ensuring real-time user notifications. However, minor delays were observed in SMS
delivery, especially under poor GSM network conditions.
In 2020, P. Patel and S. Rao developed another Arduino-based detection system using the MQ-
135 sensor and GSM modem for alert generation. Their approach proved efficient for confined
indoor spaces, though the system's performance was somewhat affected by GSM network
availability in rural or remote areas.
Overall, these studies collectively demonstrate that Arduino-based gas leakage detection
systems have become more affordable, reliable, and capable of providing timely notifications
through GSM and IoT channels. However, network dependency (either WiFi or GSM) and
power consumption remain challenges that need to be addressed for full-scale, real-world
deployment.
CHAPTER – 3
SYSTEM REQUIREMENTS SPECIFICATION
o The servo motor must actuate to perform a safety measure (e.g., close the gas
valve).
o The ESP32 must send real-time gas level data to the Blynk app via WiFi.
o Users must automatically receive an email notification using the SMTP module.
o Users must automatically receive a Telegram message alert via a Telegram Bot.
o Users must have manual control through the Blynk app to reset alarms or operate
the valve manually.
• It must have low latency for gas detection and alert generation (response time < 2
seconds).
The Blynk dashboard must be user-friendly and intuitive.
• Email and Telegram alerts must be delivered within 2–5 seconds after leak detection.
• The system should operate within typical indoor temperature and humidity ranges.
• The gas sensor must detect gas concentrations as low as 200 ppm.
• The system must respond to gas detection within 1–2 seconds.
• WiFi communication reliability must be above 95%.
• The Blynk app must update gas readings at least once every 2–3 seconds.
• The servo motor must actuate within 2 seconds after detection trigger.
• System uptime should achieve 99% availability under normal operating conditions.
CHAPTER – 4
SYSTEM ANALYSIS
Traditional gas leakage detection systems are predominantly based on standalone circuits
involving gas sensors, buzzers, and indicator LEDs. These systems detect the presence of
combustible gases like LPG, methane, or natural gas and trigger a local alarm when
concentrations exceed a set threshold. Some advanced models integrate GSM modules to
send SMS alerts; however, they are expensive, energy-intensive, and offer limited
scalability for integration into smart homes or industrial IoT frameworks.
In most residential and industrial environments today, gas leakage detection remains a
reactive process, heavily dependent on manual checks and localized alarms. There is
minimal provision for remote monitoring, cloud connectivity, or automated safety
measures, making these systems less effective in mitigating fast-evolving hazards.
4.1.1 Limitations
The proposed IoT-based Gas Leakage Detection and Alert System addresses the
drawbacks of traditional methods by introducing real-time monitoring, multi-channel
alerting, and partial automation. Using the powerful ESP32 module with built-in WiFi
capabilities, the system integrates an MQ-5 gas sensor, a buzzer, LED indicators, an I2C
LCD display, and a servo motor for automatic gas valve control.
Upon detecting dangerous gas concentrations, the system initiates multiple layers of
response:
• It triggers immediate local alerts using a buzzer and LED.
• It updates real-time gas readings on the Blynk IoT platform accessible via
smartphones.
• It sends automated email alerts via SMTP servers, ensuring users are informed even
if they miss mobile notifications.
• It delivers instant Telegram bot notifications, ensuring redundancy and faster
awareness.
• It actuates a servo motor to perform automatic gas shut-off, adding a layer of
preventive safety.
This design ensures the system can be monitored and controlled remotely, provides
immediate warnings via multiple platforms, and automates critical safety actions, making
it suitable for homes, offices, factories, and commercial buildings.
4.2.1 Advantages
• Comprehensive Multi-Channel Notifications: Buzzer + LED + Mobile App (Blynk) +
Email (SMTP) + Telegram bot ensure no alert is missed.
• Automatic Preventive Actions: Servo motor acts to close gas valves automatically upon
gas leakage detection.
• Real-Time Cloud Monitoring: Users can track gas levels from anywhere via the Blynk
IoT app on Android or iOS devices.
• Cost-Effective and Scalable: Utilizes affordable ESP32 modules and free cloud services
like Blynk and Telegram, making it accessible and expandable.
• Low Latency Response: Alerts and automated actions occur within 2–5 seconds of leak
detection, critical for minimizing damage.
• User Control and Flexibility: Remote reset and servo control through the app provide
users with full control even when not physically present.
• Energy Efficient: Optimized for low power consumption, allowing for continuous 24×7
operation even during power fluctuations.
• Compact and Portable: The system design is lightweight, compact, and easily
deployable across different sites.
• Highly Reliable Communication: WiFi and cloud platforms ensure high message
delivery success (>95%) with minimal downtime.
• Future Scalability: The system can be extended to include features like automatic
exhaust fan activation, gas meter logging, or AI-based leak prediction models.
CHAPTER – 5
SYSTEM DESIGN
The system architecture integrates sensors, actuators, and communication interfaces as follows:
System Workflow
1. Startup:
o ESP32 connects to WiFi
o Initializes LCD and Blynk
2. Monitoring:
o Constantly reads MQ5 gas sensor
o Displays gas levels on LCD
3. Leak Detected:
o If gas value > threshold:
▪ Buzzer and LED activate
▪ Servo closes gas valve (unless overridden)
▪ Email and Telegram alert sent (once)
4. Remote Control:
o User can open/close valve manually using Blynk app toggle
o Status updates shown live on LCD and Blynk
System Workflow
1. Startup:
o ESP32 connects to WiFi
o Initializes LCD and Blynk
2. Monitoring:
o Constantly reads MQ5 gas sensor
o Displays gas levels on LCD
3. Leak Detected:
o If gas value > threshold:
▪ Buzzer and LED activate
▪ Servo closes gas valve (unless overridden)
▪ Email and Telegram alert sent (once)
4. Remote Control:
o User can open/close valve manually using Blynk app toggle
o Status updates shown live on LCD and Blynk
• MQ5 Gas Sensor measures gas concentration and sends analog signals to Arduino.
• Arduino:
o Processes sensor data.
o Activates Buzzer/LED when the threshold is crossed.
o Controls the Servo Motor to shut off the valve.
o Sends data to ESP32 for remote communication and display.
• ESP32:
o Receives gas data from Arduino.
o Displays the gas level on an I2C LCD.
o Sends alerts via Email/Telegram using internet connectivity.
GAS
ARDUINO ESP32
• MQ5 Gas Sensor detects the level of gas concentration in the air.
• Arduino sends the gas level reading to the ESP32 via serial.
• ESP32:
• The entire system loops to continuously monitor and act in real time.
CHAPTER – 6
IMPLEMENTATION
6.1 Concept
This project implements a real-time gas leakage detection system that uses an MQ5 gas sensor
to monitor the presence of gases like LPG. The sensor data is read by an Arduino, which
triggers alerts such as a buzzer and LED, and sends the gas values to an ESP32. The ESP32
then controls the servo motor (gas valve), updates an LCD display, and sends email and
Telegram alerts to users remotely via WiFi.
6.2 Algorithm
1. Start
2. Initialize all devices (MQ5 sensor, buzzer, LED, LCD, servo, WiFi)
3. Read gas sensor value
4. Check threshold:
o If value > threshold:
▪ Trigger buzzer and LED
▪ Turn servo to close valve
▪ Display “Gas Leak Detected”
▪ Send email & Telegram alerts (if not already sent)
o Else:
▪ Display “Safe”
▪ Keep alerts off
5. Allow manual override using Blynk toggle
6. Repeat loop every 500ms
• MQ5 sensor detects flammable gases and sends analog values to Arduino for
processing.
• Buzzer and LED give local audible and visual indication of danger.
• ESP32 handles WiFi communication and integrates with Blynk, email (SMTP), and
Telegram APIs for remote alerts.
• I2C LCD shows current gas concentration and system status (Safe/Leak Detected).
• Servo motor controlled automatically or manually via Blynk app to open/close gas
valve.
CHAPTER – 7
TESTING
Several types of testing were performed to ensure the system functions correctly and reliably
in real-world scenarios.
Each component was tested independently to confirm proper operation. The MQ5 sensor was
tested to output correct analog values, the buzzer and LED were tested for triggering, and the
servo was tested for movement.
The entire system was tested in an integrated environment. Simulated gas leaks were used to
test sensor responses, alert triggering, LCD output, and remote communications.
Each functionality, such as gas detection, buzzer activation, LED alert, servo valve closure,
LCD updates, and Telegram/email alerts, was individually tested under various gas levels to
verify expected responses.
Testing was done to ensure seamless integration between the Arduino and ESP32.
Communication between local alert systems and cloud-based services was verified for
consistency and real-time performance.
End users (testers) interacted with the system using the Blynk app and observed its behavior in
simulated leak scenarios. Their feedback confirmed that the system was intuitive, reliable, and
acceptable for real deployment.
• Input: Simulated gas leak or high concentration near the MQ5 sensor.
• Expected Output:
o LCD displays “Gas Leak Detected”.
o Buzzer and LED are activated for visual and audible alerts.
o Servo motor rotates to close the gas valve.
o ESP32 sends real-time email and Telegram notifications.
o Blynk app displays an active warning or alert status.
• Result: Ensures full functionality of the gas detection and safety response system.
Internet Disconnection
CHAPTER – 8
PERFORMANCE ANALYSIS
The gas leakage detection and alert system was tested under various environmental conditions
and scenarios to evaluate its performance. The following key aspects were analyzed:
• Response Time: The system exhibited an average response time of less than 2 seconds
from gas detection to alert activation. The MQ5 sensor rapidly sensed gas
concentrations and triggered alerts through the Arduino and ESP32 in near real-time.
• Accuracy: The system accurately differentiated between safe and unsafe gas levels. It
avoided false positives by setting an appropriate threshold value for detection, which
was calibrated based on the sensor's sensitivity.
• System Stability: During prolonged tests, the system showed stable performance
without crashing or overheating. The Wi-Fi reconnection feature in the ESP32 ensured
resilience against temporary internet outages.
• Communication Efficiency: Email and Telegram alerts were delivered within 3–5
seconds of leak detection, confirming that the ESP32’s communication module is
efficient for IoT-based alerts.
• Power Consumption: The system operated efficiently on standard 5V USB power.
Power usage remained within acceptable limits for continuous operation in a home or
industrial environment.
• User Interface: The I2C LCD provided clear visual feedback on system status. The
Blynk IoT app allowed remote control and monitoring, contributing to a user-friendly
experience.
CHAPTER – 9
CONCLUSION AND FUTURE ENHANCEMENT
Conclusion
The implemented gas leakage detection system using an Arduino, MQ5 sensor, ESP32, and
I2C LCD successfully detects harmful gas concentrations and triggers an immediate response.
The integration of Blynk, email, and Telegram ensures prompt notifications to users, enhancing
safety in domestic and industrial environments.
The project fulfills its objective of providing an affordable, real-time, and reliable solution for
detecting gas leaks and minimizing hazards. The use of a servo motor to automatically shut off
a gas valve adds an extra layer of protection. Overall, the system demonstrates effectiveness in
early detection, alerting, and remote control features.
Future Enhancement
While the current system is functional and effective, several enhancements can be incorporated
in future iterations:
Arduino IDE
Notifications
Output on serial monitor
Appendix B: Abbreviation
• AI – Artificial Intelligence
• CO – Carbon Monoxide
• Title of the Paper: IoT Based Gas Leakage Detector Using Arduino
• Authors: Neha Praveen, Chandu S, Nidhi Harish K, Neelesh Kumar Singh, Suraj
Kumar B.P.
• Journal Name: International Journal of Scientific Development and Research (IJSDR)
• ISSN: 2455-2631
• Volume & Issue: Volume 10, Issue 5
• Publication Month & Year: May 2025
• Impact Factor: 9.15 (as per Google Scholar)
• Indexing: Indexed in all major databases (e.g., Google Scholar, Academia.edu,
ResearchGate)
• Review Process: Peer-reviewed and refereed
• Publication Type: Open Access, Multidisciplinary