Diploma in Mechanical Engineering: Arduino Based LPG Gas and Fire Detector
Diploma in Mechanical Engineering: Arduino Based LPG Gas and Fire Detector
HUSSAM SADIQUE
CERTIFICATE
This is to certify that this is the Bonafide record of the minor Project entitled
“ARDUINO BASED LPG GAS AND FIRE DETECTOR”, submitted by
“SAFETY-SPARKS” including “JIVAN JYOTI KUMAR SAH (23-ME-49)” of
DIPLOMA IN MECHANICAL ENGG. during the year 2023-2026. The results
embodied in this minor project report have not been submitted to any other university
or institute for the award of any degree or diploma.
Page 1 of 1
ACKNOWLEDGEMENT
We feel honored to place our warm salutation to our college “Government Polytechnic
Motihari” for giving us an opportunity to do this Project as part of our Minor Project.
We are ever grateful to our Class Incharge “Mr. HUSSAIN SIDDIQUI” and Head of
Department “Mr. JAYANT RAJ” who enabled us to have experience in engineering and
gain profound technical knowledge.
We would like to thank our Project Guide “Mr. RUPESH KUMAR” for his regular
guidance, suggestions and constant encouragement.
We are extremely grateful to our Project Coordinator “Mr. VIVEK KUMAR” for his
continuous monitoring and unflinching co-operation throughout project work.
We would like to thank our Team member “ Mr. JIVAN JYOTI KUMAR SAH” , “Mr.
AKASH KUMAR” , “Mr. AKANKSHA RAJ” , “Mrs. SHWETA KUMARI” who gives
their soul in making this project
We would also like to thank all the faculty members and supporting staff of the
Department of IT and all other departments who have been helpful directly or indirectly
in making our project a success.
We are extremely grateful to our parents for their blessings and prayers for the
completion of our project that gave us strength to do our project.
1 Introduction
2 System Requirements
3 System Design
4 Implementation
5 Results
6 Conclusion
References
Buletin Ilmiah Sarjana Teknik Elektro
Vol. 5, No. 1, March 2023, pp. 31-40
ISSN: 2685-9572, DOI: 10.12928/biste.v5i1.4784 31
Article History:
Submitted 31 August 2021
Revised 02 November 2022
Accepted 21 January 2023
Keywords:
Protection System;
MQ-6 Sensor;
LPG;
DHT22 Sensor; This research is a development of previous research in overcoming of LPG
Blynk gas leaks that cause fires. The system is designed using the main sensor MQ-
6 and DHT22 sensors which will detect the gas concentration and temperature
in the room, the protection system is equipped with an exhaust as a room
Corresponding Author: freshener and a buzzer as a direct warning alarm and a water pump to
Anton Yudhana, extinguish a fire. And all of data will be displayed on the application Blynk
and will send a notification on email users by using a Wi-Fi network. This
Department of Electrical
system has succeeded in detecting the concentration of LPG gas with a sensor
Engineering, detection distance of 1 cm to 7 cm getting an average time of 1.6 seconds and
Universitas Ahmad Dahlan, percentage of error comparison 2.52%. In normal temperature detection, the
Yogyakarta, Indonesia. percentage error is 1.14% and normal humidity is 2.98%, As for detection
Email: [email protected] of rising temperature by using of wax media, the percentage error is 1.84%
and humidity 1.87%. From these tests and getting results with a small
percentage value this system can already be used and runs as well.
This work is licensed under a Creative
Commons Attribution-Share Alike 4.0
Document Citation:
I. Triyatno and A. Yudhana, “Protection and Monitoring System for LPG Leaks and Fires in Arduino-Based
Rooms,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 5, no. 1, pp. 31-40, 2023, DOI:
10.12928/biste.v5i1.4784.
1. INTRODUCTION
The rapid development of technology can play a role in overcoming problems that occur among the
community, one of which is in reducing the number of fires, according to BNPB (National Disaster
Management Agency) there have been 500 cases of forest and settlement disasters throughout 2018, one of
which is LPG gas leakage [1]. In the case of fires that occur due to LPG gas caused by oxidation that occurs
due to three elements, namely fuel, oxygen and heat sources The fire will not ignite if the three elements are
not met [2].
In fire detection using various innovations carried out in research by adjusting factors and conditions in
the field and adjusting the devices used to obtain the desired research results. The selection of detection devices
greatly affects the performance of the system, the use of F lame detector sensors is very effective to find out
if a fire occurs but in placement in a room such as a kitchen sensor can at any time occur errors in detection as
well as the use of smoke detectors [3][4][5][6][7]. As well as supporting the monitoring system in the room, it
is needed in the use of IoT (Internet of Things) technology which can provide information in real-time and is
easier to use compared to its predecessor technology such as the use of SMS Gateways etc. [8].
Based on these problems, a system is designed that can detect LPG gas leaks and can overcome fires by
adjusting the device used, using an Arduino Uno microcontroller and an MQ-6 sensor in LPG gas detection
and a DHT22 sensor to determine the temperature and humidity in the room. Equipped with a room freshener
system using an Exhaust fan as well as a warning alarm using a buzzer and a water watering system consisting
of a water pump connected to a nozzle using a hose. To monitor this system is supported by the ESP8266 Wi-
Fi module which can connect the device with the internet then send information data and will be displayed on
the Blynk application and send a notification to the user's email.
2. METHODS
This study focuses on the performance of the main device in the form of sensors by comparing the value
of the detection results which will get the final value in the form of error percentage and testing on protection
systems, hardware and software that functions to find out if the device used can work according to the
circumstances in the detection room.
Based on Figure 1 It can be found that in this system there are three main parts, namely input, process
and output. In the input section itself, there is an MQ-6 sensor which is used to detect gas concentrations and
the DHT22 sensor is used to detect temperature and humidity then from the results of the data obtained from
the sensor will then be sent to a microcontroller in the process section in the form of analog data and will be
converted into digital data using the ADC feature. The digital data will be variable to control the output part of
the system and will display information on a smartphone and then sent over the internet network using the
ESP8266 module [9][10][11][12][13]. The use of the ESP8266 module which is integrated with the TCP/IP
protocol which provides access to the microcontroller to access Wi-Fi, is very helpful in the process of sending
data to the internet network [14][15]. After made a system design using a block diagram that further connects
the Arduino Uno device with other devices. Here is the series of the entire system in Figure 2 [16].
Buletin Ilmiah Sarjana Teknik Elektro, Vol. 5, No. 1, March 2023, pp. 31-40
33 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
2.2. Equations
2.2.1. LPG Gas Concentration
In the reading of the LPG gas concentration value through the MQ-6 sensor in the form of an analog
value, the RS / RO value will be searched using calculations that can be seen in Equation (1).
𝑉𝐶 − 𝑉𝑅𝐿
𝑅𝑆 = ( ) × 𝑅𝐿 (1)
𝑉𝑅𝐿
With:
𝑅𝑆 is the sensor resistance, 𝑉𝐶 is maximum voltage on the sensor, 𝑉𝑅𝐿 is minimal voltage on the sensor, and
𝑅𝐿 is resistance in the sensor circuit.
Then to find the PPM value of LPG gas, a natural log will be used which can be solved using Equation (2).
1
𝑅𝑆 −0,421
PPM = [ 𝑅𝑂 ] (2)
18,442
With:
𝑃𝑃𝑀 is the concentration of gases in the air, 𝑅𝑆 is of sensor resistance, and 𝑅𝑂 is the clean air content.
The use of the MQ-6 sensor that detects the value of LPG gas concentration in the form of analog values,
so that to convert these values, manual calculations will be used which will then be entered into the program
uploaded to the Arduino [17].
2.2.2. Average
To find the average, the calculation of errors or differences with the comparison of measuring instruments
used using Equation (3) and Equation (4) is first carried out. Then to find the average, namely by summing up
all the data (errors) divided by the total number of samples.
𝑒 = |𝑥 − 𝑦| (3)
∑𝑛𝑖 = 0 𝑒1 + 𝑒2 + 𝑒3 + ⋯ … …
𝑥= = (4)
𝑛 𝑛
Information:
𝑒 is error/sensor measurement difference, 𝑦 is measurement results of measuring instruments, 𝑥 is of sensor
measurement results, 𝑒𝑛 is the number of measurement results, and 𝑛 is the number of average sample
measurements or errors.
2.3. Algorithms
In the program uploaded to the Arduino microcontroller which will receive data from the main sensor on
the system will then be sent using a Wi-Fi network through the ESP8266 module. The following can be seen a
program of temperature and humidity readings and gas concentrations on Listing 1.
Protection and Monitoring System for LPG Leaks and Fires in Arduino-Based Rooms (Ivan Triyatno)
34 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
In the program in Listing 1 there is a temperature variable which is used to read analog values which will
then be converted to which can be used as a temperature meter, and the Hum variable is also used to change
the analog sensor value which can be used as a humidity meter in the room. In the next variable where the
program code initializes pin A1 on the Arduino which functions to read the analog value of the sensor will then
be changed using Equation (1) and Equation (2) to convert the value read from the MQ-6 sensor to a value that
can be used as a reference for testing [18].
After designing the program code, it is hoped that the program uploaded on the Arduino can run as desired
as in the flow program which can be seen in the Figure 3.
At first the device is turned on and starts initializing and connecting to the internet network then it will
start detecting past the condition conditions which if not met then the system will send information data and
display it to the Blynk application, the temperature and humidity values in the condition of the requirements
are values based on the highest value obtained in the room, then at the limit of LPG gas values based on the
Lower Explosive Limit (LEL) [19][20].
Buletin Ilmiah Sarjana Teknik Elektro, Vol. 5, No. 1, March 2023, pp. 31-40
35 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
From Table 1. di know the results of the comparison of data from the MQ-6 sensor with its comparison
variable, namely the sensor datasheet itself, while the data released by the sensor itself is the result of the
conversion of sensor analog values using Equation (1) and Equation (2). Here is the comparison chart data in
Figure 4.
2 2
1.5 1.5
1 1
0.5 0.5
0 0
0 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000
Figure 4. Comparison chart of MQ-6 sensors
Protection and Monitoring System for LPG Leaks and Fires in Arduino-Based Rooms (Ivan Triyatno)
36 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
Buletin Ilmiah Sarjana Teknik Elektro, Vol. 5, No. 1, March 2023, pp. 31-40
37 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
DHT22 HTC2
33
32
31
30
29
28
27
26
25
DHT22 HTC2
100
90
80
70
60
50
40
30
Protection and Monitoring System for LPG Leaks and Fires in Arduino-Based Rooms (Ivan Triyatno)
38 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
50
40
30
20
10
DHT22 HTC2
100
90
80
70
60
50
40
30
Buletin Ilmiah Sarjana Teknik Elektro, Vol. 5, No. 1, March 2023, pp. 31-40
39 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
4. CONCLUSIONS
Based on the results of the tests carried out, it has succeeded in creating an LPG gas and fire protection
and monitoring system supported by a network based on IoT (Internet of Things) that can always be monitored
at any time displayed on the Blynk application. Then this study also succeeded in testing sensors on system
devices using a comparison method and had a varying percentage of errors. Among them, in the comparison
of MQ-6 sensors, they get an error percentage value of ±2.52%, for a DHT22 sensor in normal temperature
measurements it gets a value of ±1.14% and humidity ±2.98%, while in measurements on the DHT22 sensor
using candles get a percentage error value on temperature measurements of ±1.84% and humidity of ±1.87%.
ACKNOWLEDGEMENT
Thank you to the editors and reviewers for all their suggestions and input until the completion of this
journal. Not to forget, the author would like to thank all parties involved in completing this journal. The author
hopes that this final project can be used as well as possible to add knowledge to yourself, especially for readers.
REFERENCES
[1] H. L. Tata, B. H. Narendra, and M. Mawazin, “Forest and land fires in Pelalawan District, Riau, Indonesia: Drivers,
pressures, impacts and responses,” Biodiversitas Journal of Biological Diversity, vol. 19, no. 2, pp. 494-501, 2018,
https://doi.org/10.13057/biodiv/d190224.
[2] F. Mirahadi, B. McCabe, and A. Shahi, “IFC-centric performance-based evaluation of building evacuations using
fire dynamics simulation and agent-based modeling,” Automation in Construction, vol. 101, pp. 1-16, 2019,
https://doi.org/10.1016/j.autcon.2019.01.007.
[3] M. M. Shahadat, A. Mallik, and M. Islam, “Development of an automated gas-leakage monitoring system with
feedback and feedforward control by utilizing IoT,” Facta universitatis-series: Electronics and Energetics, vol. 32,
no. 4, pp. 615-631, 2019, https://doi.org/10.2298/FUEE1904615S.
[4] P. Anuradha, R. R. Arabelli, K. Rajkumar, and J. Ravichander, “Microcontroller Based Monitoring and Controlling
of LPG Leaks Using Internet of Things,” In IOP Conference Series: Materials Science and Engineering, vol. 981,
no. 3, p. 032021, 2020, https://doi.org/10.1088/1757-899X/981/3/032021.
[5] Y. Irawan, A. W. Novrianto, and H. Sallam, “Cigarette Smoke Detection And Cleaner Based On Internet Of Things
(IOT) Using Arduino Microcontroller and MQ-2 Sensor,” Journal of Applied Engineering and Technological Science
(JAETS), vol. 2, no. 2, pp. 85-93, 2021, https://doi.org/10.37385/jaets.v2i2.218.
[6] A. Winarno and M. Affandi, “Design and Construction of Smart House Prototype Based Internet of Things (Iot)
Using Esp8266,” BEST: Journal of Applied Electrical, Science, & Technology, vol. 4, no. 1, pp. 11-14, 2022,
https://doi.org/10.36456/best.vol4.no1.5447.
[7] S. Suwarjono et al., “Design of a home fire detection system using Arduino and SMS gateway,” Knowledge, vol. 1,
no. 1, pp. 61-74, 2021, https://doi.org/10.3390/knowledge1010007.
[8] J. Jo, B. Jo, J. Kim, S. Kim, and W. Han, “Development of an IoT-based indoor air quality monitoring
platform,” Journal of Sensors, 2020, https://doi.org/10.1155/2020/8749764.
[9] P. Sihombing, T. P. Astuti, and D. Sitompul, “Microcontroller based automatic temperature control for oyster
mushroom plants,” In Journal of Physics: Conference Series, vol. 978, no. 1, p. 012031, 2018,
https://doi.org/10.1088/1742-6596/978/1/012031.
[10] N. I. Ilahi, S. Baco, A. S. A. Achmad, and E. Umrianah, “Early Leakage Protection System of LPG (Liquefied
Petroleum Gas) Based on ATMega 16 Microcontroller,” In IOP Conference Series: Materials Science and
Engineering, vol. 336, no. 1, p. 012021, 2018, https://doi.org/10.1088/1757-899X/336/1/012021.
[11] R. A. Koestoer, N. Pancasaputra, I. Roihan, and Harinaldi, “A simple calibration methods of relative humidity
sensor DHT22 for tropical climates based on Arduino data acquisition system,” In AIP Conference Proceedings, vol.
2062, no. 1, p. 020009, 2019, https://doi.org/10.1063/1.5086556.
[12] Y. A. Ahmad, T. Surya Gunawan, H. Mansor, B. A. Hamida, A. Fikri Hishamudin and F. Arifin, “On the Evaluation
of DHT22 Temperature Sensor for IoT Application,” 2021 8th International Conference on Computer and
Communication Engineering (ICCCE), pp. 131-134, 2021, https://doi.org/10.1109/ICCCE50029.2021.9467147.
[13] N. Z. Malika, M. G. Md Johar, M. H. Alkawaz, A. Iqbal Hajamydeen and L. Raya, “Temperature & Humidity
Monitoring for Poultry Farms using IOT,” 2022 IEEE 12th Symposium on Computer Applications & Industrial
Electronics (ISCAIE), pp. 76-81, 2022, https://doi.org/10.1109/ISCAIE54458.2022.9794520.
[14] P. Srivastava, M. Bajaj and A. S. Rana, “IOT based controlling of hybrid energy system using ESP8266,” 2018
IEEMA Engineer Infinite Conference (eTechNxT), pp. 1-5, 2018,
https://doi.org/10.1109/ETECHNXT.2018.8385294.
[15] P. Srivastava, M. Bajaj and A. S. Rana, “Overview of ESP8266 Wi-Fi module based Smart Irrigation System using
IOT,” 2018 Fourth International Conference on Advances in Electrical, Electronics, Information, Communication
and Bio-Informatics (AEEICB), pp. 1-5, 2018, https://doi.org/10.1109/AEEICB.2018.8480949.
[16] J. Mesquita, D. Guimarães, C. Pereira, F. Santos and L. Almeida, “Assessing the ESP8266 WiFi module for the
Internet of Things,” 2018 IEEE 23rd International Conference on Emerging Technologies and Factory Automation
(ETFA), pp. 784-791, 2018, https://doi.org/10.1109/ETFA.2018.8502562.
[17] R. K. Kodali, R. N. V. Greeshma, K. P. Nimmanapalli and Y. K. Y. Borra, “IOT Based Industrial Plant Safety Gas
Leakage Detection System,” 2018 4th International Conference on Computing Communication and Automation
(ICCCA), pp. 1-5, 2018, https://doi.org/10.1109/CCAA.2018.8777463.
Protection and Monitoring System for LPG Leaks and Fires in Arduino-Based Rooms (Ivan Triyatno)
40 Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
[18] H. V. Bhatnagar, P. Kumar, S. Rawat and T. Choudhury, “Implementation model of Wi-Fi based Smart Home
System,” 2018 International Conference on Advances in Computing and Communication Engineering (ICACCE),
pp. 23-28, 2018, https://doi.org/10.1109/ICACCE.2018.8441703.
[19] V. Tamizharasan, T. Ravichandran, M. Sowndariya, R. Sandeep and K. Saravanavel, “Gas Level Detection and
Automatic Booking Using IoT,” 2019 5th International Conference on Advanced Computing & Communication
Systems (ICACCS), pp. 922-925,2019, https://doi.org/10.1109/ICACCS.2019.8728532.
[20] X. Qian, R. Zhang, Q. Zhang, M. Yuan, and Y. Zhao, “Cause analysis of the large-scale LPG explosion accident
based on key investigation technology: a case study,” ACS omega, vol. 6, no. 31, pp. 20644-20656, 2021,
https://doi.org/10.1021/acsomega.1c02837.
AUTHOR BIOGRAPHY
Ivan Triyatno Born in Palembang on April 16, 1998. Completed his S1 Electrical Engineering
education at Universitas Ahmad Dahlan, Yogyakarta, Indonesia.
Anton Yudhana Born in Purworejo on August 8, 1976, completed his S1 Electrical Engineering
education at Surabaya Institute of Technology, S2 at Gadjah Mada University University, and S3
at Malaysia University of Technology. His field of interest is High Frequency & Radio
Communication. Currently he serves as Chairman of LPPM Universitas Ahmad Dahlan and
lecturer at the Department of Electrical Engineering, Faculty of Industrial Technology, Universitas
Ahmad DahlanYogyakarta, Indonesia.
Buletin Ilmiah Sarjana Teknik Elektro, Vol. 5, No. 1, March 2023, pp. 31-40
e-ISSN: 2582-5208
International Research Journal of Modernization in Engineering Technology and Science
( Peer-Reviewed, Open Access, Fully Refereed International Journal )
Volume:06/Issue:02/February-2024 Impact Factor- 7.868 www.irjmets.com
Fig 3: Arduino
Gas Sensor Module (MQ-3): The gas sensor module serves the purpose of detecting gas leaks, both in residential
and industrial settings. It is adept at identifying various combustible gases such as LPG, propane, hydrogen,
methane, CO, and others.
Fig 5: Buzzer
GSM Module: The GSM module is a hardware device employing telephony technology to establish data
connections within remote networks. It mimics a conventional cell phone from the perspective of a mobile
phone network, requiring a self-identifying SIM card. These modules are commonly integrated into embedded
systems.