Professional Documents
Culture Documents
A PROJECT REPORT
Submitted by
VENKATANATHAN S 113221071055
PRASANTH P 113221071301
BACHELOR OF ENGINEERING
IN
INFORMATION TECHNOLOGY
1
VELAMMAL ENGINEERING COLLEGE
CHENNAI –66
BONAFIDE CERTIFICATE
2
CERTIFICATE OF EVALUATION
SEMESTER : VI
This report of Project work submitted by the above students in the partial fulfillment for
the award of Bachelor of Engineering Degree in Anna University was evaluated and
confirmed to be reports of the work by the above student and then assessed.
3
ACKNOWLEDGEMENT
I would like to thank Dr. S. Satish Kumar, Principal of Velammal Engineering College,
for giving me this opportunity to do this project.
I am grateful to the entire staff members of the department of information and technology
for providing the necessary facilities and to carry out the project. I would especially like to
thank my parents for providing me with the unique opportunity to work and for their
encouragement and support at all levels. Finally, my heartfelt thanks to The Almighty for
guiding me throughout life.
4
ABSTRACT
In recent years there has been a rapid development in technology which has made
human life easier in several aspects. LPG is a need of every and is widely used for
cooking. Some of the common problems experienced during its usage are, the gas
cylinders go empty while the peak cooking hours, incognizance of the current status
of gasoline present in the container, and the failure to prophesy the working days of
the LPG cylinder once installed. All these lead to inconvenience in its use. To deal
with these issues we have an ideology put forward. It mainly focuses on the
application of the IoT used for measuring the gasoline. The continuous weight
measurement of gas on regular basis is done using a load cell which is interfaced
with a Microcontroller. The current status and the booking notifications are notified
to the user on their mobile phones via Sim 800L. The proposed monitoring system
utilizes load cell sensors to measure the weight of the LPG cylinder. The weight data
is then used to calculate the remaining gas level. The system includes a GSM
module that enables the user to receive notifications and alerts in case of any gas
leaks or low gas levels. Thealerts are sent to the user's mobile phone through SMS or
calls, ensuring timely action can be taken to prevent any accidents. Additionally, the
system includes a buzzer that is activated in case of gas leakage, alerting people in
5
TABLE OF CONTENTS
CHAPTER PAGE
TITLE
NO. NO.
ABSTRACT 4
LIST OF ABBREVIATIONS 8
LIST OF FIGURES 9
1 INTRODUCTION
1.1 PRESENT DAY SCENARIO 10
1.2 CHALLENGING IN EXISTING 11
SYSTEM
2 LITERATURE SURVEY
2.1 LPG MONITORING SYSTEM 12
2.2 EMBEDDED SYSTEMS 13
2.3 ALERT USING GSM 14
2.4 GSM 14
3 PROPOSED SYSTEM
3.1 DESCRIPTION 15
3.2 OBJECTIVE PROPOSED SYSTEM 16
3.3 ARCHITECTURE 17
6
4 HARDWARE
4.1 COMPONENTS REQUIRED 18
4.1.1 ARDUINO UNO 19
4.1.2 LOAD CELL 22
4.1.3 HX711
APPENDICES
A. CODE 28
B. RESULT 41
C. REFERENCES 43
D. PROGRAM OUTCOMES 44
7
LIST OF ABBREVATIONS
8
LIST OF FIGURES
9
CHAPTER 1
INTRODUCTION
LPG monitoring and alert systems have become increasingly popular in recent
years due to their ability to detect gas leaks and prevent potentially dangerous
situations. There are several types of LPG monitoring and alert systems
available in the market today, ranging from simple standalone devices to
more sophisticated systems that can integrate with other smart home
technologies.
One of the most common types of LPG monitoring and alert systems is a
standalone gas detector, which is typically placed in areas where gas leaks are
most likely to occur, such as near gas stoves or heaters. These detectors use
sensors to detect the presence of LPG in the air and sound an alarm whenlevels
exceed a predetermined threshold.
Another type of LPG monitoring and alert system is a smart gas detector,
which can be integrated with other smart home technologies such as Wi-Fi,
Alexa or Google Assistant. These systems provide real-time monitoring and
alerts through an app or email, allowing homeowners to receive notificationson
their smartphones or other devices when gas levels exceed a safe limit.
Moreover, some LPG monitoring and alert systems are designed specifically
for industrial or commercial applications, such as gas pipelines, refineries or
chemical plants. These systems use advanced sensors and software to provide
real-time monitoring of LPG levels, temperature, pressure, and other critical
parameters, helping to prevent accidents and ensure the safety of workers and
facilities.
10
1.2 CHALLENGES IN EXISTING SYSTEM
• Limited coverage: Most LPG monitoring and alert systems are designed to
monitor only a specific area, such as the kitchen or the garage. This can be
problematic in larger homes or buildings where multiple gas sources are
present, and there is a need to monitor a broader area.
• Cost: Some of the more advanced LPG monitoring and alert systems canbe
quite expensive, making them inaccessible to homeowners who may not
have the financial resources to invest in such technology.
11
CHAPTER 2
LITRATURE SURVEY
The system utilizes IoT technology, incorporating gas sensors for real-time
monitoring of gas levels. It integrates with a mobile application, allowing
users to access and monitor gas levels remotely. Additionally, the system
includes safety alert features to notify users
12in case of abnormal gas levels or
potential leaks. By combining gas sensors, IoT technology, mobile app
integration, and safety alert mechanisms, the system offers a comprehensive
solution for monitoring gas levels in domestic environments, enhancing safety
and convenience for users [4]. User-friendly interfaces, possibly through web
or mobile applications, enable users to access and visualize gas levels
remotely. By combining gas sensors, IoT connectivity, cloud-based analytics,
and user-friendly interfaces, the system offers an intelligent solution for LPG
gas monitoring, enhancing safety and convenience for users [5].
The system incorporates gas sensors to continuously monitor gas levels and
detect any potential leaks. Microcontrollers are utilized for data processing
and controlling sensor operations. Integration with cloud platforms enables
real-time data transmission, analysis, and storage, while also facilitating
remote monitoring and control. When a gas leak is detected, the system sends
alerts to users through various communication channels, ensuring timely
response and enhancing safety measures [6].
The user can also interact with the LPG monitoring system using SMS
commands. For example, the user can send an SMS to the system to check the
gas level or to turn off the LPG supply remotely.
GSM technology provides a convenient way for users to receive alerts and
interact with the LPG monitoring system remotely. However, it is important
to ensure that the GSM module is always connected to a reliable network to
ensure timely alerts and interactions
14
Figure 2.1
15
CHAPTER 3
PROPOSED SYSTEM
3.1 DESCRIPTION
The proposed system will continuously monitor the weight of the LPG
cylinder using the load cell. If there is any change in weight due to a gas leakor
other abnormalities, the microcontroller will trigger the buzzer and send an
SMS alert to the user's phone number using the GSM module. The user can
take appropriate action to prevent any accidents or hazards.
The load cell will be used to measure the weight of the LPG cylinder and
detect any changes in weight due to gas leakage. The load cell will be
connected to a microcontroller that will process the data.
The microcontroller will be the main control unit of the system. It will receive
data from the load cell and process it to detect any gas leak or abnormalities in
the LPG supply. If a gas leak is detected, the microcontroller will trigger the
buzzer and send an SMS alert to a pre-configured phone number using the
GSM module.
The GSM module will be used to send SMS alerts to the user's phone numberin
case of a gas leak or other abnormalities in the LPG supply. The module will
be connected to the microcontroller and will send SMS alerts based on the
pre-configured phone numbers.
16
A buzzer will be used as an audible alarm to alert the user about the gas leakor
other abnormalities in the LPG supply. The buzzer will be connected to the
microcontroller and will be triggered in case of a gas leak.
The system will require a power supply to operate. This can be a battery or a
mains power supply depending on the application.
• A hardware setup that gives a buzzer and sms alert to the comsumer
when LPG is running out.
• To send an alert message incase of the lpg gas level becomes low.
17
3.3 ARCHITECTURE
Figure 3.1
The architecture shows the input and output components used in our project. All
the various sensors connected measures the real time data and sends it to the
controller unit. The controller as per programmed, senses the value to the cloud
and also alerts the person at the used end.
18
CHAPTER 4
HARDWARE
The Uno is a great choice for your first Arduino. It's got everything you needto
get started, and nothing you don't. It has 14 digital input/output pins (of which
6 can be used as PWM outputs), 6 analog inputs, a USB connection, a
19
power jack, a reset button and more. It contains everything needed to support
the microcontroller simply connect it to a computer with a USB cable or
power it with a AC-to-DC adapter or battery to get started.This is Lilypad
Arduino main board! Lilypad is a wearable e-textile technology developed by
Leah Buechley and cooperatively designed by Leah and Spark Fun. Each
Lilypad was creatively designed with large connecting pads and a flat back to
allow them to be sewn into clothing with conductive thread. The Lilypad also
has its own family of input, output, power, and sensor boards that are also
built specifically for e-textiles. They're even washable.
Figure 4.1
20
Load cells work on the principle of strain gauges, which are resistive elements
that change their resistance when subjected to a force or weight. The load cell is
typically made up of one or more strain gauges that are arranged in a Wheatstone
bridge configuration. When a force is applied to the load cell, it causes a change
in the resistance of the strain gauges, which results in an electrical signal
proportional to the applied force.
Load cells are available in different types and configurations to suit various
applications. The most common types of load cells are:
Load cells have several advantages over other types of sensors for
measuring weight or force. They provide high accuracy and precision, are
durable, and have a long lifespan. Additionally, load cells can be easily
interfaced with microcontrollers and other electronic devices, making them
suitable for use in various applications.
21
Figure 4.2
4.1.1 HX711
22
Figure 4.3
23
CHAPTER 5
DESIGN AND IMPLEMENTATION
A monitoring and alert system for LPG (liquefied petroleum gas) typically
involves monitoring the levels of gas in a storage tank or cylinder and alerting
users if the gas levels reach a certain threshold or if there is a potential gas
24
leak. Here is a general overview of the working methodology of an LPG
monitoring and alert system:
• Data Collection: The monitoring system collects data from the sensors
and sends it to a central monitoring unit. This unit may be a standalone
device or part of a larger control system.
• Data Analysis: The monitoring unit analyzes the data to determine the
current gas levels and whether they are within safe limits. The unit may
also use algorithms to predict when the gas levels will reach critical levels
based on usage patterns.
• Alert Message: If any kind of the alert message has been generated, then it
will be sent to the respective mobile number which has beed registered to
the specific device.
25
5.3 FLOWGRAPH
26
CHAPTER 6
CONCLUSION AND FUTURE WORKS
6.1 SCREENSHOTS
27
6.2 CONCLUSION
28
APPENDICES
A. CODE
#define SS_PIN 10
#define RST_PIN 9
#define GSM_TX_PIN 3
#define GSM_RX_PIN 2
void setup() {
Serial.begin(9600);
gsmSerial.begin(9600);
SPI.begin();
mfrc522.PCD_Init();
mfrc522.PCD_DumpVersionToSerial();
Serial.println("Initializing..."); delay(2000);
gsmSerial.println("AT");
updateSerial();
gsmSerial.println("AT+CMGF=1");
29
updateSerial();
}
void sendSMS(String message) {
gsmSerial.println("AT+CMGS=\"+917358195814\"");updateSerial();
gsmSerial.print(message);
updateSerial();
gsmSerial.write(26);
}
void updateSerial() {
delay(500);
while (Serial.available()) {
gsmSerial.write(Serial.read());
}
while (gsmSerial.available()) {
Serial.write(gsmSerial.read());
}
}
30
// Initialize global variables
SoftwareSerial gsmSerial(GSM_TX_PIN, GSM_RX_PIN);
void setup() {
// Initialize serial communications for debugging
Serial.begin(9600);
while (!Serial);
void loop() {
// Send an AT command to the GSM module and wait for a response
gsmSerial.println("AT");
delay(1000);
if (gsmSerial.available()) {
String response = gsmSerial.readString();
Serial.print("GSM Response: ");
Serial.println(response);
}
}
31
// Initialize constants for the HX711 load cell moduleconst
int LOADCELL_DOUT_PIN = 4;
const int LOADCELL_SCK_PIN = 5;
const float CALIBRATION_FACTOR = 1234.56789; // Replace with your
calibration factor
void setup() {
// Initialize serial communications for debugging
Serial.begin(9600);
while (!Serial);
void loop() {
// Read the load cell and print the weightfloat
weight = scale.get_units();
Serial.print("Weight: ");
Serial.print(weight);
Serial.println(" kg");
32
delay(1000); // Wait 1 second before reading the load cell again
}
void setup() {
// Initialize serial communications for debugging
Serial.begin(9600);
while (!Serial);
33
scale.set_scale(CALIBRATION_FACTOR);
void loop() {
// Read the load cell and print the weightfloat
weight = scale.get_units();
Serial.print("Weight: ");
Serial.print(weight);
Serial.println(" kg");
// Check if weight is above the threshold and turn the buzzer on/offif
(weight > BUZZER_THRESHOLD) {
if (!buzzerOn) {
digitalWrite(BUZZER_PIN, HIGH);
buzzerOn = true;
}
} else {
if (buzzerOn) {
digitalWrite(BUZZER_PIN, LOW);
buzzerOn = false;
}
}
34
}
void setup() {
// Initialize serial communications for debugging
Serial.begin(9600);
while (!Serial);
35
// Initialize the load cell
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
scale.set_scale(CALIBRATION_FACTOR);
void loop() {
// Read the load cell and print the weightfloat
weight = scale.get_units();
Serial.print("Weight: ");
Serial.print(weight);
Serial.println(" kg");
36
delay(1000);
// Send an AT command to the GSM module to set the phone number
gsmSerial.println("AT+CMGS=\"" + phoneNumber + "\""); delay(1000);
// Send the SMS text to the GSM module and terminate with Ctrl+Z
gsmSerial.println(smsText);
delay(100);
gsmSerial.write(0x1A);
delay(1000);
// Print the GSM response to the serial monitor for debuggingwhile
(gsmSerial.available()) {
char c = gsmSerial.read();
Serial.print(c);
}
Serial.println();
}
37
const int BUZZER_PIN = 6;
const int BUZZER_THRESHOLD = 1000;
void setup() {
// Initialize serial communications for debugging
Serial.begin(9600);
while (!Serial);
void loop() {
// Read the load cell and print the weightfloat
weight = scale.get_units();
Serial.print("Weight: ");
Serial.print(weight);
Serial.println(" kg");
38
// Check if weight is above the threshold and turn the buzzer on/offif
(weight > BUZZER_THRESHOLD) {
if (!buzzerOn) {
digitalWrite(BUZZER_PIN, HIGH);
buzzerOn = true;
}
} else {
if (buzzerOn) {
digitalWrite(BUZZER_PIN, LOW);
buzzerOn = false;
}
}
39
const int GSM_TX_PIN = 2;
const int GSM_RX_PIN = 3;
const int GSM_BAUDRATE = 9600;
const String PHONE_NUMBER = "+1234567890"; // Replace with your
phone number
void setup() {
// Initialize serial communications for debugging
Serial.begin(9600);
while (!Serial);
void loop() {
// Read the load cell and print the weight
float weight = scale.get_units();
40
Serial.print("Weight: ");
Serial.print(weight);
Serial.println(" kg");
41
B.RESULT
42
C. REFERENCES
1.S. H. Kim et al , “Development of Wireless Gas Leakage Monitoring System based on IoT
Technology “Journal of the Korean Institute of Gas, vol. 22, no. 2, 2021
2.S. V. S. S. S. S. Raju et al ,” An AI-based LPG gas leakage detection and alerting system
using gas sensor and IoT” International journal of Electrical and Computer engineering
vol.10,no.6,2021
3.R. Kumar et al ,” Wireless Sensor Network-Based Gas Monitoring System for LPG Leakage
Detection“Procedia Computer Science, vol. 57, pp. 814-821, 2021
4. S. S. Kim et al , "Development of LPG Level Monitoring and Alert System with Mobile App
Notification“ , Journal of the Korean Society of Safety, vol. 30, no. 5, pp. 50-57, 2020
5. Maria Garcia et al "Wireless Sensor Network for Real-time LPG Leakage Detection and
Monitoring“, IEEE Transactions on Industrial Informatics vol.15 no.3 2019
6. Li Ming "Design and Implementation of a Smart LPG Monitoring System Based on Wireless
Sensor Networks" International Journal of Distributed Sensor Networks vol.16 no.7 2020
7. Kim Dong ,"Smart LPG Monitoring System for Household Safety Using Internet of Things“,
Journal of Sensors,no.7 2021
8. Anna Patel , "A Review of Smart LPG Monitoring Systems: Challenges and
Opportunities“,vol.16,2022
9. Abdul Rahman, "Integration of Smart LPG Monitoring System with Smart Home
Automation“, IEEE Access ,vol.7,no.9,2020
10. Abdul Rahman, "Integration of Smart LPG Monitoring System with Smart Home
Automation“, IEEE Access ,vol.7,no.9,2020.
43
44