infrared beams, which may have resulted in
inaccurate methane readings (“Aliso Canyon Infrared
Fence-Line Methane-Monitoring System:
SoCalGas”, n.d). Since there was no reliable system
in place to pinpoint the location of the leak, the leak
was undetected for multiple weeks, and SoCalGas
was found to be at fault for the massive gas leak. They
were sued for $119.5 million for the damages and
other effects of the gas leak (Domonoske, 2018). This
is just one case of a gas leak in the industrial sector
going firstly unnoticed and secondly unfixed due to a
lack of the technology in place to do so. Other major
gas leaks that have occurred around the world include
the following (“List of Pipeline Accidents,” 2021):
● November 30, 2000: pipeline caught fire near
the fishing village of Ebute near Lagos, Nigeria,
killing at least 60 people
● July 30, 2004: Ghislenghien, Belgium killing
24 people and leaving 122 wounded, some
critically
● 2011 Nairobi Kenya pipeline fire kills
approximately 100 people and hospitalized 120
● November 22, 2013: Sinopec Corp oil pipeline
exploded in Huangdao, Qingdao, Shandong
Province, China, 55 people were killed
● June 27, 2014: a pipeline blast in Southern
Indian state of Andhra Pradesh killed 22 people
and injured 37
Thus, it is crucial that a more effective gas
monitoring system is put in place in order to prevent
the consequences of another massive gas leak.
To allow real-time monitoring of natural gas
leaks, our team developed a low-cost Internet of
Things (IoT) Natural Gas Pipeline Monitoring
System. Our flammable and toxic gas monitoring
system is low-cost, can be deployed over a wide area,
has robust communication, and can be provisioned
quickly and easily. Essentially, the installer could
simply place and secure a self-contained portable
monitoring unit in any appropriate location, push a
button on their smartphone/tablet, and the new node
would configure itself to be part of the monitoring
system.
2 SYSTEM DESCRIPTION
Our IoT gas monitoring system consists of a network
of sensor nodes placed around natural gas containers,
transport facilities, pipelines, or openings that might
leak. The first phase of the system involves sensor
node modules, a communications network for the
nodes, and a central interface. The nodes are built
with the relevant gas sensor(s) (MQ-4 for methane
and ethane, etc.), solar panels and batteries for power,
and inexpensive communication modules. The
system provides connectivity for each node’s data
using a variety of communication standards such as
Bluetooth, WiFi, or LoRa, depending on the distance
between the nodes. Each node’s data is relayed
toward the central node and aggregated to the cloud
database. The user interface is built to work on a
multitude of platforms (Android, iOS, Windows,
macOS), providing widespread access to the cloud
database and thus the current gas level readings of
each node.
2.1 LoRa Sender Modules
The primary element of our natural gas monitoring
system is a network of LoRa-based gas sensor
modules. Figure 1 shows the block diagram of a LoRa
sender module. Each of these modules consists of a
LoRa32 microcontroller board, a low-cost (MQ-4)
gas sensor, a solar panel, and a 3.7 Volt lithium
battery. The LoRa32 is an ESP32-based
microcontroller which acts as the bridge between the
MQ-4 gas sensor module and the cloud database.
LoRa stands for “long range”, and provides low bit
rate communications over distances up to 10 km. The
LoRa32 module adds LoRa capabilities to the low-
cost ESP32 IoT platform. The MQ-4 gas sensor is an
extremely low-cost, widely available sensor that
detects the presence of methane gas in the air.
Methane (CH₄) is the principal constituent of natural
gas, so leaks from natural gas processing facilities can
be detected by measuring higher concentrations of
methane gas in the atmosphere. Therefore, methane is
an ideal gas for us to target, as it can be measured
easily and affordably.
The solar panel and lithium battery provide local
electrical power to the sender modules. They allow
the modules to be placed anywhere outdoors without
the need to connect to power supplies, which means
that they can be deployed easily along gas pipelines
and gas wells.
2.2 LoRa Receiver Module
The data collection node will not need a battery nor a
solar panel as it will be installed at a gas distribution
company’s station where it will have access to power
and network infrastructure such as WiFi. It will
receive packets from the sender modules over LoRa
and will store the data in the local and/or cloud-based
database such as Google Firebase. Therefore, the data