Article in HTML

Author(s): Anukul Dolly, Aditya Kumar Thakur

Email(s): anukuldolly@gmail.com, adityathakur200624@gmail.com

Address:

    of Electronics and Communication Engineering, IIMT College of Engineering, Greater Noida, Uttar Pradesh, India

Published In:   Volume - 6,      Issue - 2,     Year - 2026


Cite this article:
Anukul Dolly, Aditya Kumar Thakur, IoT-Based Household Gas Monitoring and Leakage Detection System, Spectrum of Emerging Sciences, 6 (2)10-14

  View PDF

Please allow Pop-Up for this website to view PDF file.



. Introduction

Liquefied Petroleum Gas (LPG) is widely used as a primary cooking fuel in Indian households, with over 320 million active domestic LPG connections as of 2024 [1]. While LPG is convenient and efficient, it poses significant safety risks due to its highly flammable and explosive nature. Gas leaks can occur due to loose connections, damaged regulators, cracked pipes, or unattended stoves, leading to fires, explosions, and

 

fatalities. According to the National Crime Records Bureau (NCRB), India reported over 1,200 LPG-related accidents annually between 2020 and 2024, resulting in numerous deaths and severe injuries [2].

The increasing reliance on LPG in residential kitchens, hostels, restaurants, and industrial canteens necessitates an affordable, reliable, and early warning system that can detect gas leaks before they reach dangerous levels. Previous work by Mahato et al. [16] demonstrated a household gas monitoring system using basic sensor interfacing, while Kumar et al. [17] developed a Digital Umbrella system for safety applications, highlighting the growing need for affordable electronic safety solutions in Indian households.

Conventional gas leakage detection methods face several limitations:

1.       No early warning: Manual smell-based detection occurs only after significant gas accumulation

2.       Lack of automation: No automatic alert mechanism for unattended areas

3.       High cost: Commercial gas detectors cost ₹2,000-₹5,000, inaccessible for low-income households

4.       No remote monitoring: Traditional systems do not notify users when away from home

5.       No data logging: Inability to track gas levels over time for safety analysis

The primary objectives of this work are:

1.       To design a low-cost household gas monitoring system using MQ-5/MQ-135 sensor

2.       To provide real-time gas concentration display on LCD

3.       To trigger audible (buzzer) and visual (LED) alerts when gas exceeds threshold

4.       To enable IoT-based remote monitoring via ESP8266 and mobile app

5.       To create an affordable safety solution for Indian households

2. Literature Review

Gas detection systems have been extensively researched. Previous work by Mahato et al. [16] developed a Household Gas Monitoring System that utilized basic sensor interfacing with Arduino for detecting LPG leaks and triggering local alerts. Their work established the feasibility of low-cost gas detection for residential applications. Similarly, Kumar et al. [17] developed a Digital Umbrella system, demonstrating the integration of microcontroller-based safety solutions for everyday applications, which inspired the IoT integration in the present work.

The present work differentiates itself from Mahato et al. [16] by adding IoT capabilities (ESP8266) for remote monitoring and cloud-based mobile notifications, significantly enhancing the system's utility for users who are away from home.

Table 1: summarizes additional key contributions from existing literature.

Author(s)

Year

Sensor

Technology

Key Contribution

Mahato et al. [16]

2023

MQ-5

Arduino

Household gas monitoring with local alerts

Kumar et al. [17]

2023

Multiple

Microcontroller

Digital Umbrella for safety applications

Kumar & Singh [4]

2022

MQ-5

Arduino

Basic gas detection with buzzer alert

Patel & Sharma [5]

2021

MQ-135

ESP8266

IoT-based gas monitoring with cloud

Ramya & Palaniappan [6]

2012

MQ-2

Embedded

Hazardous gas detection and alerting

Ilham et al. [7]

2021

MQ-135

Arduino Uno

Smart room smoke detector

Verma & Singh [8]

2019

MQ-2

Arduino

Smoke detection system design

Reddy & Rao [9]

2021

MQ-2

Arduino

Smoke detection implementation

Das & Banerjee [10]

2021

MQ-5

IoT

Smart gas safety with mobile alerts

Lee & Kim [11]

2020

MQ-135

IoT

Wireless gas monitoring system

3. System Architecture And Components

3.1 Overall System Design

The proposed household gas monitoring system comprises four main units: (1) sensing unit (MQ-5/MQ-135 gas sensor), (2) processing unit (Arduino Uno), (3) output unit (buzzer, LED, I2C LCD), and (4) communication unit (ESP8266 Wi-Fi module). Fig. 1 presents the block diagram.



Fig. 1. Block Diagram of Household Gas Monitoring System


The system operates as follows: The MQ-5/MQ-135 gas sensor continuously monitors the surrounding air for LPG, methane, propane, smoke, and other combustible gases. When gas concentration exceeds a predefined threshold, the Arduino Uno activates the buzzer for audible alerts and LED for visual alerts. The I2C LCD displays real-time gas concentration levels (in ppm). The ESP8266 module sends data to a cloud platform (Blynk/ThingSpeak), enabling remote monitoring and push notifications to mobile devices. This IoT integration builds upon the foundational work of Mahato et al. [16] by adding remote alert capabilities.

3.2 Component Specifications

A. MQ-5 / MQ-135 Gas Sensor

The MQ-5 sensor is specifically designed for detecting LPG, propane, and methane, while the MQ-135 detects a broader range of gases including smoke, CO₂, alcohol, benzene, and ammonia [4][6][16]. As demonstrated by Mahato et al. [16], the MQ-5 sensor provides reliable detection of LPG leaks in household environments. Key specifications include:

Pin Connections:

·         VCC → 5V (Arduino)

·         GND → GND

·         AOUT (Analog Output) → Arduino Analog Pin A0

B. Arduino Uno Microcontroller

The Arduino Uno is an open-source microcontroller board based on the ATmega328P. It features 14 digital I/O pins, 6 analog inputs, 16 MHz clock speed, and USB programming capability [12]. It reads the analog voltage from the gas sensor, converts it to gas concentration (ppm), compares it with the threshold, and controls the buzzer, LED, and LCD.

C. Buzzer (Piezoelectric)

A 5V piezoelectric buzzer produces a loud beep (85-95 dB) when gas levels exceed the threshold, providing immediate audible warning to household members [7][8][16].

D. LED Indicators

·         Green LED: Indicates normal conditions (gas level < threshold)

·         Red LED: Indicates gas leakage detected (gas level > threshold)

E. I2C LCD Display (16×2)

A 16×2 I2C LCD displays real-time gas concentration in ppm and system status. The I2C interface reduces wiring to just SDA and SCL lines [10].

F. ESP8266 Wi-Fi Module

The ESP8266 is a low-cost Wi-Fi-enabled microcontroller used for IoT connectivity. It connects to the local Wi-Fi network and sends gas sensor data to cloud platforms (Blynk, ThingSpeak, or Firebase) for remote monitoring and push notifications [5][11].

G. Power Supply (9V Battery / 12V Adapter)

The system can be powered by a 9V battery (for portability) or a 12V DC adapter (for continuous home use).

3.3 Cost Analysis

Table 2 presents the detailed cost breakdown. Compared to commercial systems and even the basic system by Mahato et al. [16], the proposed system offers additional IoT features at a minimal cost increase.

Table 2: Cost and specifications

SI. No.

Component

Quantity

Cost (INR)

01

Arduino Uno / ESP8266

1

350-400

02

MQ-5 / MQ-135 Gas Sensor

1

150-200

03

16×2 I2C LCD Display

1

120-150

04

Piezoelectric Buzzer (5V)

1

25-35

05

Red & Green LEDs

2

10

06

Resistors (220Ω, 10kΩ)

3

10

07

Breadboard / PCB

1

50-80

08

Jumper Wires (set)

20

50

09

9V Battery / 12V Adapter

1

50-100

Total

₹815-₹1,035

Average total cost: Approximately ₹900

4. Hardware Implementation

Fig. 2. Circuit Schematic Diagram of Household Gas Monitoring System

Table 3: Pin Connections

Component Pin

Connected To

Function

MQ-5/MQ-135 AOUT

Arduino A0

Gas concentration reading

MQ-5/MQ-135 VCC

Arduino 5V

Power

MQ-5/MQ-135 GND

Arduino GND

Ground

Buzzer (+)

Arduino D8

Audible alert

Red LED (Anode)

Arduino D7

Gas detected indicator

Green LED (Anode)

Arduino D6

Normal status indicator

I2C LCD SDA

Arduino A4

I2C Data

I2C LCD SCL

Arduino A5

I2C Clock

I2C LCD VCC

Arduino 5V

Power

I2C LCD GND

Arduino GND

Ground

ESP8266 TX

Arduino RX (D0)

Wi-Fi data transmission

ESP8266 RX

Arduino TX (D1)

Wi-Fi command reception

ESP8266 VCC

3.3V/5V

Power

ESP8266 GND

GND

Ground

Fig. 3. Complete Hardware Model of Household Gas Monitoring System

4.1 Software Algorithm (Arduino Code)

#include <LiquidCrystal_I2C.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
 
// Threshold settings
#define GAS_THRESHOLD 300 // ppm threshold for alert
#define SENSOR_PIN A0 // MQ-5/MQ-135 connected to A0
#define BUZZER_PIN 8 // Buzzer connected to D8
#define RED_LED 7 // Red LED connected to D7
#define GREEN_LED 6 // Green LED connected to D6
 
// Wi-Fi credentials
char ssid[] = "Your_WiFi_Name";
char pass[] = "Your_WiFi_Password";
 
LiquidCrystal_I2C lcd(0x27, 16, 2);
 
void setup() {
  pinMode(BUZZER_PIN, OUTPUT);
  pinMode(RED_LED, OUTPUT);
  pinMode(GREEN_LED, OUTPUT);
  
  lcd.init();
  lcd.backlight();
  lcd.setCursor(0, 0);
  lcd.print("Gas Monitor");
  lcd.setCursor(0, 1);
  lcd.print("System Ready");
    Serial.begin(9600);
  WiFi.begin(ssid, pass);
  delay(2000);
  lcd.clear();}
 
void loop() {
  int sensorValue = analogRead(SENSOR_PIN);
  int gas_ppm = map(sensorValue, 0, 1023, 0, 1000); // Convert to ppm
  
  lcd.setCursor(0, 0);
  lcd.print("Gas: ");
  lcd.print(gas_ppm);
  lcd.print(" ppm ");
  
  if (gas_ppm > GAS_THRESHOLD) {
    // Gas detected - Alert mode
    digitalWrite(RED_LED, HIGH);
    digitalWrite(GREEN_LED, LOW);
    digitalWrite(BUZZER_PIN, HIGH);
    lcd.setCursor(0, 1);
    lcd.print("GAS LEAKAGE!!! ");
    delay(1000);
    digitalWrite(BUZZER_PIN, LOW);
    delay(500);
    
    // Send alert to cloud
    Blynk.virtualWrite(V1, gas_ppm);
    Blynk.notify("ALERT: Gas Leakage Detected!"); } 
  else {
    // Normal condition
    digitalWrite(RED_LED, LOW);
    digitalWrite(GREEN_LED, HIGH);
    digitalWrite(BUZZER_PIN, LOW);
    lcd.setCursor(0, 1);
    lcd.print("Safe - Normal  ");  }
  
  delay(1000); // Update every second}

4.2 IoT Cloud Integration (Blynk/ThingSpeak)

The ESP8266 module sends gas concentration data to the Blynk cloud platform. Users can:

·         Monitor real-time gas levels on mobile dashboard

·         Receive push notifications when gas leakage is detected

·         View historical data and trends

·         Remotely check system status

This IoT capability represents a significant enhancement over previous work by Mahato et al. [16], who implemented only local alerts without remote monitoring features.

5. Results And Discussion

5.1 Experimental Setup

The prototype was tested under various gas concentration conditions, similar to the methodology employed by Mahato et al. [16] but with additional IoT performance evaluation:

Table 4 : Gas Concentration Level

Test Case

Description

Gas Concentration

1

Normal room air (baseline)

50-100 ppm

2

Light gas leakage (1m distance)

200-300 ppm

3

Moderate gas leakage (50cm)

350-450 ppm

4

Severe gas leakage (20cm)

500-700 ppm

5

LPG lighter gas (direct exposure)

800-1000 ppm

 

 

 

Table 5: Experimental Results

Test Case

Gas Level (ppm)

Threshold (ppm)

Red LED

Buzzer

LCD Message

Detection Time (sec)

Cloud Alert

1

50-100

300

OFF

OFF

"Safe - Normal"

N/A

No

2

200-300

300

OFF

OFF

"Safe - Normal"

N/A

No

3

350-450

300

ON

ON

"GAS LEAKAGE!!!"

5-6

Yes

4

500-700

300

ON

ON

"GAS LEAKAGE!!!"

3-4

Yes

5

800-1000

300

ON

ON

"GAS LEAKAGE!!!"

2-3

Yes

 

5.2 Key Findings

1.       Detection Accuracy: The system successfully detected gas leakage in 18 out of 20 trials (90% accuracy)

2.       Response Time: Average detection time was 3-8 seconds depending on proximity and concentration

3.       Effective Range: The sensor reliably detected gas within 1-2 meters

4.       Remote Notification: Cloud alerts were received within 5-10 seconds of detection

5.       False Alarms: No false alarms occurred during normal room conditions

5.3 Comparison with Previous Work

Table 6: Comparative Analysis With Existing Work

Parameter

Mahato et al. [16]

Kumar et al. [17]

Proposed System

Application

Household Gas Monitoring

Digital Umbrella

IoT Gas Monitoring

IoT Capability

No

No

Yes (ESP8266)

Mobile Alerts

No

No

Yes (Blynk)

LCD Display

Yes

Optional

Yes (I2C)

Local Alerts (Buzzer+LED)

Yes

Yes

Yes

Remote Monitoring

No

No

Yes

Cost (Approx.)

₹800

₹700

₹900

The proposed system builds upon the foundational work of Mahato et al. [16] by adding IoT capabilities for remote monitoring and cloud-based alerts, while maintaining affordability. The Digital Umbrella concept by Kumar et al. [17] inspired the integration of multiple alert mechanisms in a compact, user-friendly design.

5.4 Applications

The proposed gas monitoring system is suitable for:

1.       Residential Kitchens: LPG gas leakage detection

 

 

 

 

2.       Industrial Kitchens: Restaurants, hostels, canteens

3.       Laboratories: Chemical gas detection

4.       Warehouses: Storage areas with combustible materials

5.       Boiler Rooms: Methane and propane detection

5.5 Limitations

1.       Limited Range: Effective detection within 1-2 meters from sensor

2.       No Gas Valve Control: Cannot automatically shut off gas supply

3.       Calibration Required: Sensor needs 10-15 minutes preheating

4.       Internet Dependency: Cloud alerts require active Wi-Fi

5.       False Positives: Cooking fumes may occasionally trigger sensor (requires threshold tuning)

6. Conclusion And Future Scope

6.1 Conclusion

This paper successfully presented the design and implementation of a low-cost, IoT-based household gas monitoring and leakage detection system. Building upon the foundational work of Mahato et al. in household gas monitoring and drawing inspiration from the integrated safety approach of Kumar et al. in the Digital Umbrella system, the proposed system adds significant IoT capabilities for remote monitoring.

The system utilizes an MQ-5/MQ-135 gas sensor for detecting LPG, propane, and combustible gases, an Arduino Uno microcontroller for data processing, a buzzer and LED for local alerts, an I2C LCD for real-time gas concentration display, and an ESP8266 Wi-Fi module for IoT connectivity.

Key achievements include:

1.       Successful detection of gas leakage within 3-8 seconds

2.       Real-time gas concentration display in ppm on LCD

3.       Dual alerts (audible buzzer + visual LED)

4.       IoT-enabled remote monitoring via mobile app (Blynk/ThingSpeak)

5.       Low-cost implementation at approximately ₹900 (USD 11)

This system adds remote monitoring and cloud notification capabilities. Compared to commercial systems costing ₹2,000-5,000, this system is significantly more affordable while offering superior IoT features.

6.2 Future Enhancements

1.       Automatic Gas Valve Shut-off: Add servo motor to close LPG cylinder regulator automatically

2.       SMS Alerts: Add GSM module (SIM800) for cellular notifications without Wi-Fi

3.       Exhaust Fan Control: Automatically turn on exhaust fan during gas leakage

4.       Multiple Sensors: Network multiple gas sensors for larger kitchens

5.       Voice Alert: Add voice module for verbal warnings in regional languages

6.       Battery Backup: Add rechargeable Li-ion battery for power outage protection

7.       Data Logging: Add SD card module for recording gas levels over time

Acknowledgment

The authors sincerely thank Prof. (Dr.) Pankaj Jha, Head of the Department of Electronics and Communication Engineering, IIMT College of Engineering, Greater Noida, for his invaluable guidance and support. The authors also acknowledge the faculty members, technical staff, and B.Tech. batchmates for their constructive feedback and laboratory facilities.



Related Images:

Recomonded Articles:

Author(s): Reena Rawat

DOI:         Access: Open Access Read More

Author(s): Chaman Soni; Surendra Gupta; Himanshu Ranjan

DOI: 10.55878/SES2023-3-1-5         Access: Open Access Read More

Author(s): Sunny Raj; Yash Kumar Singh Jadon; Basanta Mahto

DOI: 10.55878/SES2024-4-1-10         Access: Open Access Read More

Author(s): Juhi Mishra; Sapna Sorrot; Seema Nayak; Puneet Mittal

DOI: 10.55878/SES2024-4-1-7         Access: Open Access Read More

Author(s): Ram Ashish Maurya, Riya Tiwari, Aayush Vikram Singh

DOI: 10.55878/SES2025-5-2-7         Access: Open Access Read More

Author(s): Abhishek Kr Dubey; Sumit Singh; Deepak Sahu

DOI: 10.55878/SES2024-4-1-6         Access: Open Access Read More

Author(s): Sarfraj Ansari; Santosh Yadav; Nitish Kumar Rai

DOI: 10.55878/SES2023-3-1-7         Access: Open Access Read More

Author(s): Akshika Singh; Anshika Pandey; Aman Patel; Seema Nayak

DOI: 10.55878/SES2024-4-1-9         Access: Open Access Read More

Author(s): Akhlad Kadri; Ajaharudin Ansari; Alok Gond

DOI: 10.55878/SES2023-3-1-3         Access: Open Access Read More

Author(s): Roshan Kumar; Rahul Yadav; Pankaj Jha

DOI: 10.55878/SES2024-4-1-13         Access: Open Access Read More

Author(s): Punit Tomar, Ankit Sharma, Sandhya Bhardwaj

DOI: 10.55878/SES2025-5-1-3         Access: Open Access Read More

Author(s): Sachin Chhonker; Om Tripathi; Arpita Gupta

DOI: 10.55878/SES2024-4-1-17         Access: Open Access Read More

Author(s): Kartikey Pandey; Ujjwal Tiwary; Manikesh Jha

DOI: 10.55878/SES2024-4-1-11         Access: Open Access Read More

Author(s): Jatin Bora, Dharmesh Lodhi, Arpita Gupta

DOI: 10.55878/SES2025-5-1-8         Access: Open Access Read More

Author(s): Anmol Nagar, Sheetal Nagar

DOI: 10.55878/SES2025-5-1-9         Access: Open Access Read More

Author(s): Anush Kumar Singh, Ankit Kumar, Surendra Kumar

DOI: 10.55878/SES2025-5-2-14         Access: Open Access Read More

Author(s): Achitya Srivastava, Arpit Dubey, Dev Prakash, Surendra Kumar

DOI: 10.55878/SES2025-5-1-5         Access: Open Access Read More