Professional Documents
Culture Documents
ABSTRACT The rapid expansion of Internet of Things (IoT) devices and applications has accelerated
research in various areas of human development. However, the cost of commercial instrumentation impedes
the momentum of technological growth in developing regions. In this study, a low-cost, low-power, wireless
sensor network for groundwater monitoring (LWNGM) was developed to provide near real-time groundwater
level data to support prudent decision making in groundwater resource management in Zanzibar, Tanzania.
The system is based on the ATmega328P microcontroller platform and incorporates MS5803-14BA and
MB280 sensors. The I2C communication channels between the sensors and the microcontroller were
extended using 25-meter PVC cables. The electronics were potted and protected in a waterproof aluminum
cylinder. The Arduino UNO wakes up in six-hour intervals for measurements and data-logging to the SD
card, and at twelve-hour intervals for relaying data (in batches) to the LoRa gateway, before it goes back
into a deep-sleep mode for the rest of the time (duty cycle < 1% ). The average power consumption for the
end node was 104.081mW. The power autonomy of all nodes is provided by a 3.7V, 5000mAh rechargeable
LiPo battery, and a 9V, 600mAh rechargeable Li-ion battery, respectively, which are supported by 6V and,
3W solar chargers. The data processing and storage components, as well as the data visualization dashboard,
were created using free and open-source software. The LWNGM was reasonably priced, ranging between
$350 and $400. Practical evaluation determined that, the system is reliable and transferable, particularly in
areas with a limited budget for hydrologic management.
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
VOLUME 9, 2021 128417
O. H. Kombo et al.: Design and Application of Low-Cost, Low-Power, LoRa-GSM, IoT Enabled System
for timely, cost-effective, and energy-efficient groundwater imposing restrictions on node operations [43], [44]. Another
monitoring is a significant challenge worldwide [13], [14]. potential solution to the energy problems of WSNs is to har-
However, there is data scarcity in many parts of the vest ambient energy. Solar energy harvesting is dependable
world [7], [15]. The problem is exacerbated in SSA, where and has a high energy capacity [45], [46]. The combination
there is a lack of long-term data and reliable infrastructure of the low-power scheme and energy-harvesting technology
for groundwater monitoring and management [7], [16]–[18]. provides a solid solution for self-sufficient WSNs.
Nonetheless, a small amount of accumulated data suggests Hydrological data loggers are normally expensive. As a
that SSA aquifers are declining locally [19]. This also calls result, the adoption of IoT-based sensing applications in
for improved approaches to freshwater resource monitoring developing countries has slowed. According to studies,
in order to maintain human and ecosystem health [20], low-cost and open-source resources open up new avenues
as well as improved estimation of storage, abstraction, and for hydrologic management and monitoring. Surprisingly,
replenishment amounts [21]. this instrumentation is a strong tool that allows scientists to
The advancement of ICT and communication technologies adjust and tailor sensors to specific hydrological research
has created numerous opportunities to improve the man- needs [36]. The redesign of sensors used in time-series
agement of natural resources. These new and appropriate monitoring of groundwater depths provides an opportunity
technologies can provide useful information that aids in to improve research and development, particularly in areas
reducing the water crisis [6], [11], [22]. WSNs have a where data and data collection infrastructure are limited.
wide range of applications, including industrial [23], [24]
smart cities [25], [26], traffic control [27], [28], health- A. PRIMER ON LoRa RADIO TECHNOLOGY
care [29], [30], agriculture [31], [32] and environmental Long-range communication (LoRa) is one of the most rapidly
monitoring [33], [34]. Self-powered WSNs deployed in evolving wireless technologies, based on low-power wide-
remote areas and that provide data in a near real-time manner area networks (LPWANs) and owned by Semtech [47]. It is
can potentially revolutionize groundwater table management. intended to support the chirp spread spectrum (CSS) and for-
A comprehensive explanation of the various applications of ward error correction (FEC) with a large number of parallel
WSNs for scientific and social purposes can be found in [35]. channels. In this context, devices operating at different data
However, the high cost of these conventional commercial rates can operate at various payload sizes ranging from 2bits
components reduces the rate of adoption of sophisticated to 255bits at a maximum rate of 50kbps.
WSN apparatuses in many fields [34], [36]–[39]. This has LoRa is defined by the LoRa-Alliance [48] as a
resulted in the emergence of low-cost wireless sensors (LCS), wide area network (LoRaWANTM ), an open standard that
which provide a suitable alternative to the scientific commu- is rapidly expanding. It operates in unlicensed bands
nity [34]. As a result, this technology is rapidly advancing, (433, 868, or 915 MHz), but it has several advantages over
providing numerous benefits to beneficiary countries. Most other LPWAN-enabled protocols. These advantages include
mainstream LCS designs are restricted to above-water envi- lower energy consumption and network security (end-to-end
ronments, most likely because of the difficulty in fully water- encryption). The basic LoRaWAN network architecture is
proofing the electronics. Notably, despite the lower costs and star-of-stars, in which end-devices communicate with gate-
rapid adoption of LCS in various fields, deployment of these ways via LoRaWAN. A network server is normally connected
solutions in developing countries is uncommon [34], with to a higher throughput network (WiFi, Ethernet, 3G or 4G) at
technical and financial reasons among the barriers preventing the far end of the LoRaWAN and receives raw LoRaWAN
wider adoption of LCS on that side of the world [36]. In gen- frames from the end devices via the gateway. The FEC,
eral, the growing applications of LCS have seen a limited bandwidth (BW), and spread factor (SP) are the three most
number of studies that provide open data in their reality and important LoRa parameters to configure [49]. These param-
do not produce information for scientists and other potential eters have a significant impact on network performance, with
stakeholders [38], [34]. BW having the most sway.
It has been reported that low-cost sensors have been Normally, one or more radio transceivers connect the two
redesigned to provide more scalable and manageable instru- sides to the field nodes and the gateway. RFM95W is a widely
mentation. The redesign of LCS has several advantages, used, low-power LoRa enabling transceiver. It consumes little
including increased environmental spatial and temporal cov- current and is resistant to interference [50]. Table 1 presents
erage, lower cost per sensor, and customization to a specific the typical RFM95W LoRa modem specifications.
physical setting [38]. The simplicity, accuracy and robust- One or more radio transceivers are typically used to con-
ness of these sensors have paved the way for promising nect the two sides of the field nodes and the gateway.
alternatives in environmental monitoring [34], [40]. Further- RFM95W based LoRa transceivers are not only recom-
more, this has prompted more research and the development mended for its low power, but also for its impervious to
of scientific tools for monitoring environmental phenomena. interference.
Despite this, a better approach to providing and utilizing Despite technological advancements, there are only a
power and energy to the WSN is required [41], [42]. One few telemetry-enabled water table depth monitoring sys-
widely accepted method for extending the life of a network is tems [37]. There has always been a demand for simpler
TABLE 1. RFM95W modem specifications. of sufficient groundwater information for viable decision
making.
In one of the earliest and closely related work,
Anumalla et al. [56] studied pressure sensors and field pro-
grammable arrays were used to monitor the levels of ground-
water tables in Western Nebraska aquifers in the United
States. To relay data from a remote field to the data processing
unit, the authors used a 2.4 GPRS/GSM communication
scheme. The collected data were disseminated via a web
application and text messages.
Calderwood et al. [37] created an open-source, low-cost
WSN for real-time groundwater management using cellu-
lar network telemetry. The system consists of a proprietary
data collection unit and an open-source data handling and
visualization web application. Furthermore, Chan et al. [38]
proposed a groundwater observatory model that includes
a low-cost probe made with low-cost pressure sensors
(NXP MPX5010DP and MS5803-02ba) to measure water
and more affordable solutions for measuring water table table depths. The submersible sensor is housed in a water-
depths. The majority of existing environmental applica- proof (aluminum tube) enclosure and a common logger in a
tions are based on proprietary conventional commercial separate open to air enclosure sample atmospheric pressure.
WSN apparatuses. Furthermore, there is a global shortage of In that work, the authors established that the redesigned
low-cost, long-range wireless monitoring systems for mea- sensor performed better with accuracy, which was closely
suring water table depths [38]. To date, no studies have correlated to a commercial version.
reported on the use of LoRa-based, low-cost WSN in ground- Furthermore, a study [57] investigated the application of
water table management in Tanzania. wireless sensors in a submersible environment, in which a
The principal goal of this study is to create and evaluate low-cost Arduino-based data logging platform is proposed for
a low-cost, low-power, self-powered IoT-based water table monitoring drip rates and water flow in a flooded cave. The
depth monitoring system to aid in responsible groundwater electronic components were housed in a 2inchies Polyvinyl
management in Zanzibar, Tanzania. In this laboratory and chloride water pipe, and the system was powered by three
field study, the WSN system was designed to provide near AA batteries.
real-time water table data by utilizing LoRa and GSM net- In this study, we created and tested a groundwater mon-
work connections as well as solar energy harvesting. The itoring platform based on low-power, low-cost sensors,
deployment of the LWNGM to monitor Zanzibar ground- open-source tools, and low-power solar energy harvesters.
water tables is an important step toward efficient resource The system periodically logs the water table depth data to
management in this region. Solar energy harvesting with an SD card on site, and then relays the recorded data to
low-power components generates a positive energy balance the LG01 LoRa gateway in batch, twice a day. This study
and improves the system’s network sustainability. The pro- will broaden the regional and global understanding of simple
posed system visualizes and shares data with the community and low-cost WSN technology for hydrology management.
via an interactive web dashboard. It will also improve evidence-based consultation to assist
decision-makers in making better decisions for sensible water
B. RELATED WORK resource management. Table 2 summarizes the analysis of the
The adoption of low-cost instrumentation in wireless sensor works on related topics.
technologies has significant potential. In recent years, the According to Table 2, most of the analyzed studies used
Internet of Things (IoT) has gained traction in environmental commercial pressure transducers and did not provide infor-
research. The application of WSN to surface water man- mation on the overall cost, energy, and power analysis of the
agement has received a lot of attention [51]–[54] but less solutions reported in these studies. It is also evident that low-
attention has been paid to its application in groundwater cost, long-distance communication technology (e.g., LoRa)
resources [33], [55]. According to previous studies, there were not used. Instead, high-power, high-cost networks were
are a limited number of deployments for low-cost ground- used.
water sensing applications in both developed and developing
countries [34]. Subsequently, we review studies on the sub- C. CONTRIBUTIONS
ject and highlight some of the most recent ICT-enabled Our key contributions include:
advancements in groundwater table management. Some stud- • Conceptual design of low-cost, low-power, autonomous
ies have focused on the use of WSNs for groundwater WSN for groundwater monitoring based on non-
resource monitoring [55], in order to address the lack proprietary software.
• Developing an energy-harvesting wireless sensor net- management and distribution of water supply in the Isles.
work for continuous and near real-time monitoring of The station is situated approximately 87m from one of the
groundwater. huge ponds in Zanzibar. The majority of the people in
• Developing an integrated system that combines Mnyimbi and nearby villages get their water from drilled
sensor-based remote monitoring with downstream units wells.
for open data sharing with policymakers, scientists, and Groundwater is the primary source of fresh water for
the general public. more than a quarter (25%) of Tanzanians [61], and is the
• A practical analysis and evaluation of the cost and primary source of water (more than 70%) in the Zanzibar
energy expenditure for the water table monitoring model Islands [62], [63]. However, according to some studies,
in order to better understand the cost and energy impli- groundwater extraction in Zanzibar is unsustainable, and
cations of affordable WSN technology. some boreholes are no longer operational [59], [64], [65].
At the end of each month, ZAWA monitors patrols across
D. ORGANIZATION the country to collect water quality and quantity measure-
The remainder of this paper proceeds as follows. In Section II, ments from bored observational wells. Normally, the only
we describe the materials and methods used in the cur- available water table depth-monitoring tool is the beeper
rent investigation. The experimental results are presented tape. These patrols are time-consuming, human-resource-
in Section III. Section IV presents the discussion of the intensive, and material-resource-intensive. Current monitor-
experimental results. The limitations of this investigation are ing practices and frequencies have a significant impact on
outlined in Section V. The study’s conclusions and future the quality and availability of continuous water table data.
work are outlined in section VI. As a result, there is a need for affordable and continuous
Lastly, Table 3 provides the list of the abbreviations used groundwater monitoring in Zanzibar [59], [64].
in this article.
B. DESCRIPTION OF THE SYSTEM DESIGN AND
II. MATERIALS AND METHODS REALIZATION
In this section, we provide a detailed elucidation of the field One of the driving forces behind this study’s attempt to create
sites, materials, and methods utilized for this investigation. a WSN-based platform for monitoring of variations in water
table depths is technological advancement in low-power sen-
A. STUDY SITE DESCRIPTION sors and telemetry. The system is intended to have low power
Bandamaji station is found in Donge Mnyimbi at −5. 968399, and low cost in nature. To achieve this goal, the system
39.250488, with an elevation of approximately 37m in comprises four low-cost, low-power main components: the
Zanzibar, Tanzania (Figure 1). This area is approximately terminal unit (end node), gateway, network server, and cloud
25 km from the Zanzibar stone town. The groundwater obser- application server. The low-cost and low-power components
vatory station is under the Zanzibar Water Authority (ZAWA) (shown in Table 4) are redesigned and used to realize the
[59], [60], a government organization responsible for the intended system.
FIGURE 1. Location of bandamaji monitoring well in (a) Africa (b) Tanzania and (c) Zanzibar (Unguja) - Donge, Mnyimbi.
1) GATEWAY HARDWARE AND PROGRAM power the gateway is their high voltage capacity and longer
The gateway (GW) is the connection point through which life. The software that controls the gateway is written in the
end nodes send data to the server. The Dragino LG01-P C programming language in an open source Arduino Inte-
gateway (Dragino, Shenzhen, Guangdong, China) embeds grated Environment (IDE), downloaded from the Arduino
a Semtech SX1276 LoRa module with an RMF95 chipset website (Arduino Somerville, MA, USA).
(Semtech Corporation, USA), and connects the LoRa wire- The gateway relays data to the local server using the mes-
less network to the Internet protocol (IP). This gateway sage queuing telemetry transport (MQTT) protocol. The pro-
supports LoRaWAN protocol on a single channel and con- tocol is well suited to the size and format of the message sent
trolled by the customizable OpenWrt Linux-based platform. to the server, as well as the processing devices [18], [29].
It has a 100mA current rating and a 12V voltage rating. The The messages are formatted in JSON format for ease of
gateway operates at 868 MHz with a 3 dBi gain antenna, reading and to reduce server load. Fig. 2 depicts the scheme
receives sensor data via LoRa radio with an average sen- used to collect and relay data from the field to the network
sitivity of -148 dBm, and relays it to the local server via server. The configurations for the gateway and the 4G LTE
a GPRR/GSM backhaul. The Quectel 4G LTE EC25-EU USB dongle were completed on a Linux-based console using
USB dongle (Quectel, Shanghai, China) was connected to the a secure shell connection (SSH), web user interface, and AT
cellular network at 50Mbps and delivered downlink data at command (via the default IP address 10.130.1.1).
150Mbps. A 9V to 12V DC voltage booster module (Shen-
zhen iSmart, Guangdong, China) was connected to a 9V, 2) FIELD SENSOR MODULE HARDWARE AND PROGRAM
600mAh Li-ion rechargeable battery and two 9V, 3 W solar An Arduino Uno R3 microcontroller (MCU) served as
panels connected in series to power the LG01 gateway at 12V. the foundation for the field-sensing node (Fig. 3). The
Li-ion batteries have several advantages over other types of MCU board communicates with the LoRa transceiver
batteries, but the most important reason they were chosen to version 1.4 (Dragino, Shenzhen, Guangdong, China) and the
TABLE 3. Abbreviations. TABLE 4. Selected components for the development of the LWNGM.
using a separate power source from a long-lasting 3V lithium The ATmega328P microcontroller was embedded in an
coin cell battery [66], [67], whereas the micro SD card (SD) Arduino Uno. Uno has a voltage rating of 3.3V to 5V and
module is powered through a 3.3V pin of the MCU. a maximum current of 50mA, according to the datasheet.
the end node spends the majority of its time in the low-power
mode.
LoRa board’s 3dBi gain antenna to establish a line of sight
3) PREPARATION OF WATER TABLE DEPTH PROBE with the 868 MHz GL01-P LoRa gateway’s 3dBi antenna,
The following procedure was used to adapt the MS 5803-14B which was positioned 3m above the ground.
sensor (TE connectivity) for the desired task. To make the The three common bus protocols for communications
sensor and the I2C differential connector (PCA9615) water- between digital sensors and microcontrollers are the serial
proof, they were potted in epoxy resin. Following the sensor peripheral interface (SPI), one-wire, and integrated-integrated
and the I2C differential connector (PCA9615) waterproof, communication (I2C). All of these protocols are supported by
they were potted in epoxy resin. Following the wired connec- both hardware and software libraries. The SPI and one-wire
tion of the PCA9615 and the MS5803 sensor, both devices protocols can transfer large amounts of data at higher data
were enclosed in a watertight metallic tube measuring 9.5cm rates, but they have drawbacks such as the SPI requiring ded-
(3.74in) length and 4.5cm (1.772in) diameter for waterproof- icated communication pins and a one-wire with complex data
ing reinforcement. A 6mm hole was drilled at one end of the synchronization at the receiver side. Moreover, the one-wire
metallic tube to expose the pressure measuring diaphragm scheme is unpopular among hardware manufacturers and is
to the water in the well. Another 6 mm hole was drilled susceptible to cable capacitance and noise. Despite the fact
on the opposite end of the tube to allow us to draw in the that the I2C has slow data and a shorter data transfer distance
UTP cable that connects to the differential I2C breakout that (<1m) [57], we chose it for prototyping because of its ability
uses the PCA9615 integrated circuit, as shown in Fig. 4(b). to share and save communication pins. The most difficult
This cable connects the sensor to the microcontroller board task in the redesign and preparation of the end device was
via two I2C extenders (PCA9615 converters). The tube was to pot the sensor and the I2C differential interface with epoxy
also potted to prevent water from leaking through the joints for underwater applications. Although the diaphragm of the
and drilled holes. The MBE280 climatic pressure sensor was MS5803 is contained and protected by a stainless steel cap,
epoxy-potted and hung 3m from the top of the well cas- it may be easily damaged if it comes into contact with glossy
ing in the bored well. As shown in Fig. 4(d), the Arduino and sticky materials such as the potting epoxy resin during
UNO board, LoRa shield, and all connected electronics the potting process. Several devices were damaged during
were enclosed in a waterproof PVC enclosure. The unit was the potting and testing phases before we came up with a
mounted on a pole 1.5m above the ground, corresponding to viable solution. For example, when we potted and enclosed
the height of the end node. This position allowed the 868 MHz the MS sensor in a plastic container and housed the container
in a PVC cylinder (see Fig. 4(a) and 4(c)), the attempt was are received from the gateway, the Python script written
unsuccessful, allowing water to enter and damage it. in Python 3.6.6 Integrated Development Environment (IDE)
(Sparkfun, Electronics, Colorado, USA) were used on runs to perform data processing by enumerating daily aver-
Cat 6, UTP cable to overcome the limitation of the I2C pro- ages from raw data and then correcting the data for the
tocol (capacitance effects on the signals increase with cable influence of cable length and barometric pressure. The cal-
length). To extend the wire up to 25m, one differential conver- culations of the measured water table depths was carried out
tor was attached at each end of the cable (see Fig. 5). Unlike in the following manner. Each averaged value of the water
most of the studies that used the MS5803 sensor family column pressure was first compensated for the average value
with cable length <10m [38], [57], [68], this study success- of the atmospheric pressure using (1).
fully applied MS5803-14BA with a cable length of 25m and
overcome the limitations of the I2C protocol. As a result, Wd (t) = Pw (t) −Pb (t) (1)
a high-pressure sensor (MS5803) could be installed in the where Wd (t) refers to the depth of water at time t, Pw (t) is
borehole at a depth of 15 m below ground. RJ45 connectors the water column pressure on the submersible sensor at time t,
were used to connect the PCA9615 devices to both ends of and Pb (t) ambient pressure at time t. We also need to calcu-
the UTP cables. The serial data line (SDA), serial clock line late the actual length of the cable (Cl ) attached to the sensor.
(SCL), 3.3V input line, and ground terminal point (GND) on The (Cl ) is computed in (2).
the PCA9615 device correspond to the four connection pins
on the MS5803 sensor. Hence, only four of the eight cores Cl (0) = Pw (0) + Dw (0) (2)
of the UTP cables were used to transfer data between the
where Cl (0) refers to the length of the cable at time
sensor and the UNO board via PCA9615 devices using the
t = 0, Pw (0) is the pressure of the water column above the
I2C protocol. Likewise, MBE280 used the same connection
submersible sensor at time t = 0, and Dw (0) is the depth to
arrangements and protocols.
water at time t = 0. From (1) and (2), the actual water table
height is subsequently obtained as follows.
Ah (t) = Sd −Cl (0) + Wd (t) (3)
where Ah (t) refers to the actual depth of the water table at
time t, Sd is the average sea level data in the study area.
The processed groundwater data are saved in the MySQL
database. MySQL is a well-known, open-source, high-
performance database that can be used for both on-premises
and cloud-based IoT applications [69]. The data are then
copied and uploaded to cloud storage for backup, sharing,
and visualization (as explained in the next subsection). The
database design allows for scalability, allowing for the addi-
tion of data from new observational stations. It can han-
dle data from multiple stations while requiring only minor
changes to the database configurations.
5) CLOUD SERVER AND DATA VISUALIZATION
Sharing information among stakeholders and end users
is a significant step toward resource management coher-
FIGURE 5. The I2C differential interfacing connectors attached to each
end of the Cat 6 UTP sensor connection cable (25m).
ence [34]. The LGWMN cloud-based web portal was cre-
ated to allow data sharing with potential stakeholders. The
Potting was done to protect the sensor from water and MySQL-powered website was created using the PHP and
moisture during the construction of the barometric pressure Java scripts. The monitoring dashboard has four primary
probe using a BME280 sensor (MBE), but the length of the functions: A map that allows the user to navigate the location
cable was set to 10m, which is significantly shorter than the of the borehole well, charts that show the trends and patterns
length of the underwater MS5803 cable. This is primarily of the water table depth variations over a specified period, and
due to the fact that the BME280 for atmospheric pressure downloadable data in a CSV file format. The database also
measurement is hung inside the borehole three meters (3m) includes a configuration with information about the location
from the borehole casting rather than being submerged in and data rendering.
water.
6) ENERGY AUTONOMY OF THE LWNGM
4) DATA CORRECTION AND STORAGE DESCRIPTION Energy autonomy is a critical requirement for IoT systems,
The local server (LS) receives sensor data from the particularly those deployed in remote and difficult-to-reach
LG01 gateway twice a day via a wired connection. When data locations [70]. The chosen solar panels have a 3W, 6V solar
charger that serves as a backup to a 3.7V, 5000mAh LiPo The results computed in (4) can be used to estimate the
battery (Fig. 6) that powers the end node. The gateway is time required to charge the battery (tch ); however, we must
powered by a DC-to-DC power booster with a constant output first calculate the amount of energy produced by the battery.
voltage of 12V and a current rating of 1A. This booster is Given a battery with a charge capacity (Batt cap ) of 5000mAh
linked to a 9V, 600mAh Li-ion battery, which is recharged by and a voltage rating (Batt vt ) of 3.7V, the energy of the
two mini solar panels (6V, 3W each) connected in series to battery (Batt en ) as a function of Batt cap and battery voltage
produce a total output voltage of 12V. Batt vt is computed as given in (5).
FIGURE 7. LWNGM platform: the well, devices, sensors, power source, and communication protocols deployment.
the node. The recorded values are then relayed to the gateway TABLE 5. Configured LoRA transmission parameters.
(shown in Fig. 8(a)) at the scheduled time before the data are
transmitted from the gateway to the network server.
A. LWNGM SYSTEM DEPLOYMENT
The LoRa-GSM-based logger was deployed between
May 2 and 15, 2021. The system continuously sampled and
transmitted data to the local server over a two-week period.
The locations of the end-node and the gateway were carefully
chosen to provide the best possible line of sight through the
area with minimal vegetation at the study site.
At the distance of 125m from the end-node, the gateway is
TABLE 6. Performance metrics for the LWNGM LoRa network.
located in the doors near an open window. The vegetation and
tall trees slightly shaded the line of sight between the gateway
and end nodes. The line of sight is clear in most of the time.
Table 5) The deployment also considered the possibility of
scaling up the network while retaining the single-hop topol-
ogy. This allows for the addition of more end nodes to share a series of packets from the end node to the gateway and
the gateway while ensuring network longevity. To maximize computed the packet delivery ratio (PDR) for those packets.
the energy of the system, the solar energy harvesters were The PDR is calculated as the ratio of the total number of
placed in areas where there was no shade or materials such as packets that successfully arrive at the receiver (gateway)
tree leaves that could block the surface of the solar panels. to the total number of packets that leave the source (end
node). We also measured the received signal strength (RSSI)
B. CONFIGURATION, KEY PARAMETERS, AND NETWORK
and airtime for packet transmission in addition to the PDR.
PERFORMANCE
Table 6 and Fig. 9 depict the performance of the LWNGM
The optimal efficiency for the LoRa link was achieved with system.
key parameter settings of 14 dB, 4/5, 868 MHz, 125 kHz,
and 7, respectively, for transmission power, coding rate, C. SYSTEM TESTING AND DATA
transmission frequency, bandwidth, and spread factor The deployment in the field allowed the LWNGM to be
(see To evaluate the performance of our network, we sent tested. The mean water level was enumerated in six-hour (6h)
FIGURE 11. Web dashboard for LWNGM showing a plot of two weeks data from Bandamaji station at 6-hour intervals.
TABLE 7. Summary of the quantity and pricing of the LWNGM duration of 1.1ms at 1µA. Unlike writing to an SD card,
components.
the UNO takes an average of 7ms to complete at a cur-
rent of 31mA. In contrast, the SD card draws an average
of 0.11mA while sleeping. The sleep state consumed a total
current of 28.0112mA in this case. The node remained in deep
sleep (tsleep ) for 3598.653 s.
We can calculate the amount of charge consumed as the
product of sleep duration and the current drawn while sleep-
ing. As a result, the charge expended (Csleep , in mAs) was
100,801.869mAs. Similarly, the end node enters a data sam-
pling state for a sampling time (tsamp ) of 1.007s and the
consumption (Csamp ) of 31.282mAs. Here, we define the
data-sampling state as the process of measuring data and
logging it to an SD card. Furthermore, relaying the sampled
data to the gateway consumes an average current of 28mA
at a transmission time (ttx ) of 0.34s, with a total charge
consumption (Ctx ) of 9.52mAs.
The complete cycle of the operation includes both the
active and sleep times of the end node. During duty
cycle d, the amount of energy consumed by this node reaches
a maximum value, which is given as.
tact
d= (7)
T
where T refers to the total time spent in the entire cycle,
tact denotes the time at which the device is in the wake state.
The LGWMS records two (2) measurements (Nsamp ) in
each data-sampling period, with an average sampling time
(tavsamp ) of 0.34s. The total charge consumption over the
and LoRa transceiver breakouts are 27.9mA, 0.1µA, 0.1µA,
cycle (OC cycle ) is expressed in (8) and the battery cycle
and 1mA, respectively. The MBE280 sensors have an
in (9).
average data sampling duration of 1s at 1.8µA and the
OC cycle = Nsamp .Csamp tsamp + Nsamp .Csleep tsleep
MS5803-14BA sensors have an average data sampling (8)
and the greater the observed airtime. Similarly, as the airtime simultaneously. A wireless network scaled to a large spatial
lengthens, so does the power budget [73]. area typically includes several nodes that must constantly
Furthermore, the topography and local environment at the communicate with the gateway at all times. One or more
site influence signal reception quality. Despite its strong multichannel gateways may be required in this context. Sim-
modulation technique, LoRa is sensitive to the presence of ilarly, only one observational well was used for this study,
reflections and obstacles. Mnyimbi is a rural area with little which does not adequately represent a large distribution of
vegetation and fewer signal obstacles and reflectors. These bored wells in the area surrounding the studied borehole.
favorable conditions allowed for the majority of the time to Furthermore, a longer data collection period is required to
be spent installing LWNGM nodes in positions that maintain gain a deeper understanding of the characteristics of aquifers.
a clear line of sight between LWNGM nodes. The line of least Two weeks of data are insufficient to generate comprehensive
resistance to tree leaves was established at 1.5m for the end information that is free of the bias caused by the pumping
node and 3m for the LoRa-4G-based gateway. effect of nearby wells.
Despite the slight signal attenuation (due to the tree
branches moving with the wind), the LoRa signal was found
to be stable and reliable. No significant impact on the received VI. CONCLUSION AND OUTLOOK
signals was observed due to the moderate weather conditions, An autonomous low-power, low-cost IoT-based system with
with the mean air temperature and onboard temperature both energy harvesting was designed and evaluated to provide
below 40◦ C and rain rates below 100mm/h. The results of our a proof-of-concept for practical monitoring of water table
experiments show that signals from the LWNGM’s end node depths. The LWNGM consists of four parts: data acquisi-
arrive at the gateway node correctly (RSSI = 83 percent) with tion, data management, energy harvesting and management,
a low number of retransmissions. The vast majority of packets and data storage and visualization. The developed low-cost
arrive at the gateway correctly (PDR > 80%) and with a solution is built on an open platform. The LWNGM gener-
reasonable airtime (40ms). This was accomplished with SF7, ates critical information for more efficient assessment and
CR4/5, a TX of 14 dB, a BW of 125, and the CRC enabled. management of groundwater tables. Furthermore, the sys-
Two possible explanations for these results are the distance tem’s information down streaming capability allows for
(125m) and the slightly clear line of sight (light vegetation) additional research in the fields of hydrology and sensor
between the gateway and the end node. networks.
The accuracy of the samples collected by the sensors has We potted the electronic sensor and extended the
a direct impact on the measurement quality. According to the I2C-enabled communication channel up to 25m via a PVC
results, the MS5803-14BA sensor data deviated by 1.1 % cable, for underwater application in the borehole. The system
from the standard measurement performed with a beeper. runs on batteries supported by the reliable tiny solar cells.
Furthermore, the MBE280 data deviated from standard atmo- The outstanding efficiency and low cost of redesigned sensor
spheric pressure by 0.37 %. The linear calibration produced nodes and energy harvesters have evaluated to be the promis-
the most accurate results in filling the gaps between the stan- ing alternatives to conventional instruments.
dard measurements and the Arduino-based measurements in The prototype system was used to monitor groundwa-
this case. As a result, data collected by the LWNGM sys- ter wells at the Bandamaji station in Zanzibar, Tanzania.
tem has become more reliable. This is consistent with the The system is easily transferable, even to least developed
results of the study in [37], which confirms the applicability countries, because it is built with low-cost components and
of linear calibration in sensor data correction. Furthermore, does not require advanced technical skills. The system per-
in order to maintain the accuracy of the measurements over formed admirably and allowed for near real-time monitoring
time, the effective cable length must be recalculated every six of changes in water table depth; in the future, we intend to
months [36]. extend this automatic monitoring system to all groundwater
Unlike manual data collection, where the cost of labor and monitoring wells in Zanzibar. This will be accomplished by
field visits is a significant barrier to informed groundwater deploying multichannel outdoor LoRa gateways to connect
management, low-cost, automated monitoring with energy several end nodes spread across the Zanzibar Islands. We also
harvesting creates the potential for continuous observations, intend to develop and incorporate low-cost water quality
especially in low- and middle-income countries. Similarly, sensors into the LWNGM system in order to enhance the
the quality and reliability of data collected by LWNGM are monitoring and assessment of the aquifers.
far superior to data collected using traditional methods. This
is due to the fact that in traditional data collection practices,
errors are easily introduced, and missing data points are a ACKNOWLEDGMENT
common occurrence. The authors would like to thank Zanzibar Water Authority
for their invaluable assistance throughout the study. They
V. STUDY LIMITATIONS would also like to thank the anonymous reviewers for their
The use of a single-channel gateway limits the number of end invaluable suggestions and comments on how to improve this
nodes that can communicate with the LoRa-enabled gateway article.
[46] M. H. Alsharif, S. Kim, and N. Kuruoğlu, ‘‘Energy harvesting techniques [68] T. P. Lyman, K. Elsmore, B. Gaylord, J. E. K. Byrnes, and L. P. Miller,
for wireless sensor networks/radio-frequency identification: A review,’’ ‘‘Open wave height logger: An open source pressure sensor data logger
Symmetry, vol. 11, no. 7, p. 865, Jul. 2019. for wave measurement,’’ Limnol. Oceanogr., Methods, vol. 18, no. 7,
[47] LoRa Technology: Eliminating Water Waste and Leakage DNA of IoT Use pp. 335–345, Jul. 2020.
Case. Semtech. Camarillo, CA, USA. Accessed: Jun. 9, 2021. [Online]. [69] L. Jiang, L. D. Xu, H. Cai, Z. Jiang, F. Bu, and B. Xu, ‘‘An IoT-oriented
Available: https://www.semtech.com/uploads/technology/LoRa/app- data storage framework in cloud computing platform,’’ IEEE Trans. Ind.
briefs/Semtech-UseCase-Apna-FINAL-web.pdf Informat., vol. 10, no. 2, pp. 1443–1451, May 2014.
[48] LoRaWAN Specification 1R0, LoRa Alliance, Fremont, CO, USA, 2016, [70] L. J. Chien, M. Drieberg, P. Sebastian, and L. H. Hiung, ‘‘A simple solar
pp. 1–91. energy harvester for wireless sensor networks,’’ in Proc. 6th Int. Conf.
[49] LoRaTM Modulation Basics, Semtech, Camarillo, CA, USA, May 2015, Intell. Adv. Syst. (ICIAS), Aug. 2016, pp. 1–6.
pp. 1–26. [71] C. J. García-Orellana, M. Macías-Macías, H. M. González-Velasco,
[50] R. Ghanaatian, O. Afisiadis, M. Cotting, and A. Burg, in Proc. IEEE Int. A. García-Manso, and R. Gallardo-Caballero, ‘‘Low-power and low-cost
Conf. Acoust., Speech Signal Process. (ICASSP), Brighton, U.K., 2019, environmental IoT electronic nose using initial action period measure-
pp. 1498–1502. ments,’’ Sensors, vol. 19, no. 14, p. 3183, Jul. 2019.
[51] R. Martać, N. Milivojević, V. Milivojević, V. Ćirović, and D. Barać, [72] Renewable Energy in Africa: Tanzania Country Profile, Afr. Develop.
‘‘Using Internet of Things in monitoring and management of dams in Bank, Abidjan, Côte d’Ivoire.
Serbia,’’ Facta Univ., Ser., Electron. Energetics, vol. 29, no. 3, pp. 419–435, [73] A. M. Yousuf, E. M. Rochester, and M. Ghaderi, ‘‘A low-cost LoRaWAN
2016. testbed for IoT: Implementation and measurements,’’ in Proc. IEEE 4th
[52] P. M. Pujar, H. H. Kenchannavar, R. M. Kulkarni, and U. P. Kulkarni, World Forum Internet Things (WF-IoT), Feb. 2018, pp. 361–366.
‘‘Real-time water quality monitoring through Internet of Things and
ANOVA-based analysis: A case study on river Krishna,’’ Appl. Water Sci.,
vol. 10, no. 1, pp. 1–16, Jan. 2020.
[53] M. A. Nasirudin, U. N. Za’bah, and O. Sidek, ‘‘Fresh water real-time
monitoring system based on wireless sensor network and GSM,’’ in Proc. OMAR H. KOMBO received the B.S. degree in
IEEE Conf. Open Syst. (ICOS), Sep. 2011, pp. 354–357. computer science from The State University of
[54] C. Encinas, E. Ruiz, J. Cortez, and A. Espinoza, ‘‘Design and imple- Zanzibar, Zanzibar, Tanzania, in 2010, and the
mentation of a distributed IoT system for the monitoring of water qual- M.S. degree in computer science from Vellore
ity in aquaculture,’’ in Proc. Wireless Telecommun. Symp., Apr. 2017, Institute of Technology, Vellore, India, in 2015.
pp. 1–7. He is currently pursuing the Ph.D. degree in
[55] Q. Zhou, C. Chen, G. Zhang, H. Chen, D. Chen, Y. Yan, J. Shen, and wireless and intelligent sensor networks with the
R. Zhou, ‘‘Real-time management of groundwater resources based on
African Centre of Excellence in Internet of Things,
wireless sensors networks,’’ J. Sens. Actuator Netw., vol. 7, no. 1, pp. 1–11,
University of Rwanda, Kigali, Rwanda. From
2018.
2010 to 2013, he was a Tutorial Assistant and an
[56] S. Anumalla, B. Ramamurthy, D. C. Gosselin, and M. Burbach, ‘‘Ground
water monitoring using smart sensors,’’ in Proc. IEEE Int. Conf. Electro Assistant Lecturer with The State University of Zanzibar, from 2015 to 2017.
Inf. Technol., May 2005, pp. 1–6. His research interests include machine learning, the Internet of Things, image
[57] P. A. Beddows and E. K. Mallon, ‘‘Cave pearl data logger: A flexible processing, mobile learning, and embedded computing.
Arduino-based logging platform for long-Term monitoring in harsh envi-
ronments,’’ Sensors, vol. 18, no. 2, p. 530, 2018.
[58] X. Li, X. Cheng, P. Gong, and K. Yan, ‘‘Design and implementation of
a wireless sensor network-based remote water-level monitoring system,’’
Sensors, vol. 11, no. 2, pp. 1706–1720, 2011.
[59] Zanzibar Water Authority Strategic Business Plan (2013–2018) Table of SANTHI KUMARAN received the B.Eng. degree
Contents, Zanzibar Water Authority, Zanzibar, Tanzania, 2018. in electronics and communications and the M.Eng.
[60] The Revolutionary Government of Zanzibar, Zanzibar Environmental Pol- degree in microwave and optical engineering from
icy the First Vice President’s Office Department of Environment Table of M. K. University, India, in 1990 and 1993, respec-
Contents, 2013. tively, the M.Eng. degree in computer engineering
[61] E. Elisante and A. N. N. Muzuka, ‘‘Occurrence of nitrate in Tanzanian from M. S. University, India, in 1999, and the
groundwater aquifers: A review,’’ Appl. Water Sci., vol. 7, no. 1, pp. 71–87, Ph.D. degree in computer engineering from SRM
Mar. 2017. University, India, in 2010.
[62] H. Mwevura, M. R. Haji, W. J. Othman, and C. J. Okafor, ‘‘Seasonal She is currently working with Copper-
assessment of quality of groundwater from private owned wells in Unguja belt University, Kitwe, Zambia. She has over
island Zanzibar,’’ Int. J. Tropical Disease Health, vol. 42, no. 4, pp. 30–45, 50 peer-reviewed publications. She has worked in EU-FP7 projects and
Apr. 2021. in World Bank projects, including ACEIoT. She has won the IBM Faculty
[63] E. Hansson, ‘‘Groundwater on Zanzibar—Use and pollutants,’’ Uppsats för Award, in 2010.
Avläggande av Naturvetenskaplig Magisterexamen I Miljövetenskap 30
HP, Institutionen för Växt- och Miljövetenskaper, Göteborgs Universitet,
Gothenburg, Sweden, Nov. 2010. Accessed: Jul. 12, 2021. [Online].
Available: http:/www.bioenv.org.se/digitalAssets/1322/1322530_erik-
hansson.pdf
[64] R. A. M. M. Rubhera, ‘‘Groundwater quality degradation due to salt water
ALASTAIR BOVIM received the B.Soc.Sci. and
intrusion in Zanzibar municipality,’’ Afr. J. Environ. Sci. Technol., vol. 9,
B.Com. (Hons.) degrees from the University of
no. 9, pp. 734–740, Sep. 2015.
Cape Town, Capetown, South Africa, in 1992 and
[65] Z. P. Ali and M. J. Rwiza, ‘‘Assessment of the impact of groundwater
pumpage on water supply sustainability in Zanzibar, Tanzania,’’ Environ. 2009, respectively. He was the Managing Director
Earth Sci., vol. 79, no. 21, Nov. 2020, Art. no. 490. of Inmarsat Solution, South Africa, from 2011 to
[66] M. Al Imran, Y. Dalveren, B. Tavli, and A. Kara, ‘‘Optimal operation mode 2021, and held the position of the Vice President
selection for energy-efficient light-weight multi-hop time synchronization Managed Services at Inmarsat, from 2017 to 2021.
in linear wireless sensor networks,’’ EURASIP J. Wireless Commun. Netw., He is currently the CEO of Insight Terra Ltd. His
vol. 2020, no. 1, 2020, doi: 10.1186/s13638-020-01744-y. research interests include LPWAN networks, data
[67] A. D. Wickert, C. T. Sandell, B. Schulz, and G. C. Ng, ‘‘Open-source management, edge computing, and information
Arduino-compatible data loggers designed for field research,’’ Hydrol. security.
Earth Syst. Sci., vol. 23, no. 4, pp. 2065–2076, 2019.