Abstract
In the current scenario of increased water demand and climate change, the risks of water scarcity are greater, especially in the semi-arid region of Brazil, highlighting the need for efficient management of water resources. Faced with this challenge, this study developed a prototype for the automated measurement of water volume in distribution reservoirs aiming to control losses and assist management in supply systems. The device integrates an ultrasonic sensor with a NodeMCU microcontroller, programmed in C + + using the Arduino Integrated Development Environment (IDE), to collect and transmit data to the IoT ThingSpeak platform. The prototype was installed in the reservoirs of the Water Supply System of the campus Sede of the Federal University of Campina Grande, Paraíba and data were collected between 24/09/2023 and 19/10/2023. The data analysis allowed us to calculate the minimum and maximum levels of the reservoirs to meet the demand and maintain the pressure in the network, and determine the useful volume. The device performed well, enabling the researchers to observe that manual management of the reservoirs resulted in irregular daily volume variations, dependence on the operator’s experience and availability, and water losses due to spillover. The volume in one of the reservoirs remained constant, negatively affecting water quality, while the other reservoir exhibited significant variations, with a mean daily demand of 91 m3. Low-pressure points were also identified in the network. The data collected by the sensor indicate the necessity of automated control to reduce water losses and maintain an efficient and sustainable water supply.













Similar content being viewed by others
Explore related subjects
Discover the latest articles and news from researchers in related subjects, suggested using machine learning.References
Abdul MS, Sam SM, Mohamed N, Hassan NH, Azizan A, Yusof YM (2022) Peer to peer communication for the internet of things using ESP32 microcontroller for indoor environments. Int Conference ICT Converg. https://doi.org/10.1109/ICTC55196.2022.9952832
ABNT (Associação Brasileira de Normas Técnicas) (2017) NBR 12218 - Projeto de rede de distribuição de água para abastecimento público. Rio de Janeiro. https://abntcatalogo.com.br/pnm.aspx?Q=eSs5dVlLNHV4Z3hLYmJUYzNIMVlXajJ2bm1UNE5wMGo3N3Uxd0tnZk9GQT0=. Accessed Jun 2024
Ali SMA (2022) Dispositivos de medição de consumo de água usando conceitos de IoT. Dissertation, Universidade Federal do Rio Grande do Norte, Centro de Tecnologia, Natal, Rio Grande do Norte. https://repositorio.ufrn.br/jspui/bitstream/123456789/50593/1/TCC_Mohamad.pdf. Accessed Jun 2024
Amponis G, Lagkas T, Karampatzakis D et al (2022) Efficient peer-to-peer unicasting for VANET architectures via enhanced monolithic protocols. In 2022 7th South-East Europe design automation, computer engineering, computer networks and social media conference (SEEDA-CECNSM) (pp. 1-8). IEEE, Ioannina, Greece, 23-25 September 2022.https://doi.org/10.1109/SEEDA-CECNSM57760.2022.9932897
Andrade EP, Nunes ABdeA, Alves KdeF, et al (2020) Water scarcity in Brazil: part 1 - regionalization of the AWARE model characterization factors. Int J Life Cycle Assess 25:2342–2358. https://doi.org/10.1007/s11367-019-01643-5
Ben Zaied Y, Kertous M, Ben Cheikh N, Ben Lahouel B (2020) Delayed payment of residential water invoice and sustainability of water demand management. J Clean Prod 276:123517. https://doi.org/10.1016/j.jclepro.2020.123517
Claudino CMdeA, Farias VEMde, Brandão AF, Ogata IS, Filho RdaSR, Sena TdeS (2021) Avaliação das perdas em um sistema de abastecimento de água de pequeno porte no semiárido brasileiro por aspectos multicriteriais. Revis de Gestão de Água da América Latina 18:e13. https://doi.org/10.21168/rega.v18e13
Cuartas LA, Cunha APMDA, Alves JA et al (2022) Recent hydrological droughts in Brazil and their impact on hydropower generation. Water (Switzerland) 14(4):601. https://doi.org/10.3390/w14040601
Cunha APMA, Zeri M, Leal KD et al (2019) Extreme drought events over Brazil from 2011 to 2019. Atmosphere 10:642. https://doi.org/10.3390/atmos10110642
da Silva GAB, Meira CMBS, de Santana CFD et al (2019) Simulação do decaimento de cloro residual livre em reservatórios de distribuição de água. Revista DAE 67:92–103. https://doi.org/10.4322/dae.2019.036
de Jesus Portela RR, da Costa RB, Correia JB (2023) Análise das perdas nos sistemas de abastecimento de água nos municípios do mato grosso do sul. Geofronter 9. https://doi.org/10.61389/geofronter.v9i1.7570
De Medeiros IC, Da Costa SJFCB, Silva RM, Santos CAG (2019) Run-off–erosion modelling and water balance in the epitácio pessoa dam river basin, paraíba state in Brazil. Int J Environ Sci Technol 16:3035–3048. https://doi.org/10.1007/s13762-018-1940-3
Elsisi M, Mahmoud K, Lehtonen M, Darwish MMF (2021) Reliable industry 4.0 based on machine learning and IoT for analyzing, monitoring, and securing smart meters. Sensors 21:487. https://doi.org/10.3390/s21020487
Eridani D, Rochim AF, Cesara FN (2021) Comparative performance study of ESP-NOW, Wi-Fi, bluetooth protocols based on range, transmission speed, latency, energy usage and barrier resistance. In: Proceedings - 2021 international seminar on application for technology of information and communication: IT opportunities and creativities for digital innovation and communication within global pandemic, ISemantic 2021. Institute of Electrical and Electronics Engineers Inc, pp 322–328. https://doi.org/10.1109/iSemantic52711.2021.9573246
Heller L (2010) In: de Pádua VL (ed) Abastecimento de água para consumo humano, vol 1. Editora UFMG, Minas Gerais
Hossain S, Chow CWK, Cook D, Sawade E, Hewa GA (2022) Review of nitrification monitoring and control strategies in drinking water system. Int J Environ Res Public Health 19(7). https://doi.org/10.3390/ijerph19074003
Imad HU, Akhund MA, Ali M, Pathan AA, Ahmed A (2019) Non-volumetric pricing is a threat to water reserves. Civil Eng J 5:422–428. https://doi.org/10.28991/cej-2019-03091256
Jan F, Min-Allah N, Saeed S, Iqbal SZ, Ahmed R (2022) IoT-based solutions to monitor water level, leakage, and motor control for smart water tanks. Water (Switzerland) 14:309. https://doi.org/10.3390/w14030309
Kherbache N (2020) Water policy in Algeria: limits of supply model and perspectives of water demand management (WDM). Desalin Water Treat 180:141–155. https://doi.org/10.5004/dwt.2020.25009
Kulkarni SA, Raikar VD, Rahul BK, Rakshitha L V., Sharanya K, Jha V (2020) Intelligent water level monitoring system using IoT. In 2020 IEEE international symposium on sustainable energy, signal processing and cyber security (iSSSC) (pp. 1-5). IEEE, Gunupur Odisha, India, 16-17 December 2020.https://doi.org/10.1109/iSSSC50941.2020.9358827
Kumar S, Yadav S, Yashaswini HM, Salvi S (2019) An IoT-based smart water microgrid and smart water tank management system. Adv Intell Syst Comput 906:417–431. https://doi.org/10.1007/978-981-13-6001-5_34
Kviesis A, Komasilovs V, Ozols N, Zacepins A (2023) Bee colony remote monitoring based on IoT using ESP-NOW protocol. PeerJ Comput Sci 9:e1363. https://doi.org/10.7717/peerj-cs.1363
Liemberger R, Wyatt A (2019) Quantifying the global non-revenue water problem. Water Supply 19:831–837. https://doi.org/10.2166/ws.2018.129
Lipponen MTT, Suutari MH, Martikainen PJ (2002) Occurrence of nitrifying bacteria and nitrification in Finnish drinking water distribution systems. Water Res 36(17):4319–4329. https://doi.org/10.1016/S0043-1354(02)00169-0
Marengo JA, Torres RR, Alves LM (2017) Drought in Northeast Brazil - past, present, and future. Theoret Appl Climatol 129:1189–1200. https://doi.org/10.1007/s00704-016-1840-8
Netto A, Fernández MFY (2018) Manual de Hidráulica, 9th edn. Blucher, São Paulo
Patwardhan S, Vishwanath V (2017) Assessment of water consumption at urban household level: a case study of Pune, Maharashtra. In: Sharma P, Rajput S (eds) Sustainable Smart Cities in India. The Urban Book Series. Springer, Cham, pp 475–491. https://doi.org/10.1007/978-3-319-47145-7_30
Perumal T, Sulaiman MN, Leong CY (2015) Internet of things (IoT) enabled water monitoring system. In 2015 IEEE 4th global conference on consumer electronics (GCCE) (pp. 86-87). IEEE, Osaka, Japan, 27-30 October 2015.https://doi.org/10.1109/GCCE.2015.7398710
Purwanto H, Riyadi M, Astuti DWW, Kusuma IWAW (2019) Komparasi sensor ultrasonik HC-SR04 DAN JSN-SR04T untuk aplikasi sistem deteksi ketinggian air. Simetris: J Teknik Mesin, Elektro dan Ilmu Komp 10(2):717–724. https://jurnal.umk.ac.id/index.php/simet/article/view/3529. Accessed Jun 2024
Raha MH, Ahmed S, Paul D (2019) Aqua: water level audit and alimentation for smart city. In: 2019 International conference on contemporary computing and informatics (IC3I). IEEE, Singapore, pp 54-58.https://doi.org/10.1109/IC3I46837.2019.9055520
Reza SMK, Tariq SAMd, Reza SMM (2010) Microcontroller based automated water level sensing and controlling: design and implementation issue. In: Proceedings of the world congress on engineering and computer science. Newswood Ltd., International Association of Engineers. https://iaeng.org/publication/WCECS2010/WCECS2010_pp220-224.pdf
Santoso AD, Sembada Wicaksana R, Gunarti MR, Surabaya PP (2024) Design and Development of a ship fuel tank volume height monitoring system using the JSN-SR04T sensor based on IoT telegram bots with solar panel energy. In: Proceedings of the 3rd International Conference and Maritime Development (ICMaD 2024). Springer Nature, pp 11–26. https://doi.org/10.2991/978-94-6463-628-4_3
Shah PP, Patil AA, Ingleshwar SS (2017) IoT based smart water tank with android application. In 2017 international conference on I-SMAC (IoT in social, mobile, analytics and cloud)(I-SMAC) (pp. 600-603). IEEE, Palladam, India, 10-11 February 2017. https://doi.org/10.1109/I-SMAC.2017.8058250
Sharma SK, Seetharaman A, Maddulety K (2021) Framework for sustainable urban water management in context of governance, infrastructure, technology and economics. Water Resour Manage 35:3903–3913. https://doi.org/10.1007/s11269-021-02916-1
Siddula SS, Babu P, Jain PC (2018) Water level monitoring and management of dams using IoT. In 2018 3rd international conference on internet of things: smart innovation and usages (IoT-SIU) (pp. 1-5). IEEE, Bhimtal, India, 23-24 February 2018.https://doi.org/10.1109/IoT-SIU.2018.8519843
Slavíková L, Vojáček O, Smejkal T (2017) Artificial shortage of surface water: how can water demand management mitigate the scarcity problem? Water Environ J 31:12–19. https://doi.org/10.1111/wej.12217
Soares ALF (2012) Gerenciamento de demanda de água em ambientes de uso público: o caso da Universidade Federal de Campina Grande. Dissertation, Universidade Federal de Campina Grande. http://dspace.sti.ufcg.edu.br:8080/jspui/handle/riufcg/1833?mode=full
Souza RMO, dos Santos JR, Amici TT, Camusso D (2021) Monitoramento de Caixa d’Água com realidade aumentada e IOT. Rev Bras Mecatrônica 4(2):56–67
Souza DESE, Mesquita ALA, Blanco CJC (2023) Pressure regulation in a water distribution network using pumps as turbines at variable speed for energy recovery. Water Resour Manage 37(3):1183–1206. https://doi.org/10.1007/s11269-022-03421-9
Stewart RA, Nguyen K, Beal C et al (2018) Integrated intelligent water-energy metering systems and informatics: Visioning a digital multi-utility service provider. Environ Model Softw 105:94–117. https://doi.org/10.1016/j.envsoft.2018.03.006
Su Y, Gao W, Guan D, Zuo T (2020) Achieving urban water security: a review of water management approach from technology perspective. Water Resour Manage 34:163–4179. https://doi.org/10.1007/s11269-020-02663-9
Sutikno T, Satrian Purnama H, Pamungkas A et al (2021) Internet of things-based photovoltaics parameter monitoring system using NodeMCU ESP8266. Int J Electric Comp Eng (IJECE) 11(6):5578–5587. https://doi.org/10.11591/ijece.v11i6.pp5578-5587
Thomaz FR, Miguez MG, de Souza Ribeiro de Sá JG, de Moura Alberto GW, Fontes JPM (2023) Water Scarcity Risk Index: a tool for strategic drought risk management. Water 15(2): 255. https://doi.org/10.3390/w15020255
Tsutiya MT (2004) Abastecimento de água. Departamento de Engenharia Hidráulica e Sanitária da Escola Politécnica da Universidade de São Paulo.
UFCG - Universidade Federal de Campina Grande (2024) PINFRA. http://conecta.ufcg.edu.br:8080/pinfraufcg/. Accessed Jun 2024
Vaidya DR, Mali ST, Gupta R (2024) Pressure-dependent analysis of water distribution network having different required pressure values at different nodes. Iran J Sci Technol Trans Civ Eng 48(2):1009–1019. https://doi.org/10.1007/s40996-023-01183-x
Wang H, Proctor CR, Edwards MA et al (2014) Microbial community response to chlorine conversion in a chloraminated drinking water distribution system. Environ Sci Technol 48(18):10624–10633. https://doi.org/10.1021/es502646d
Zapana-Churata L, March H, Sauri D (2022) Water demand management strategies in fast-growing cities. The case of Arequipa, Perú. Int J Water Resour Dev 38:363–387. https://doi.org/10.1080/07900627.2021.1903401
Zhou C, Jiang P (2020) A design of high-level water tank monitoring system based on Internet of things. In 2020 7th international forum on electrical engineering and automation (IFEEA) (pp. 769-774). IEEE, Hefei, China, 25-27 September 2020. https://doi.org/10.1109/IFEEA51475.2020.00163
Zinkevich AV (2021) ESP8266 microcontroller application in wireless synchronization tasks. In 2021 international conference on industrial engineering, applications and manufacturing (ICIEAM) (pp. 670-674). IEEE, Sochi, Russia, 17-21 May 2021.https://doi.org/10.1109/ICIEAM51226.2021.9446411
Acknowledgements
The authors thank the National Council for Scientific and Technological Development (CNPq) and the Coordination for the Improvement of University Education Personnel (CAPES) for the scholarships granted through the Graduate Program in Civil and Environmental Engineering and the Graduate Program in Engineering and Management of Natural Resources at the Federal University of Campina Grande.
Funding
Not applicable.
Author information
Authors and Affiliations
Contributions
M.B.R., D.L.B. and I.A.P.B. conceptualized the study. M.B.R., D.L.B., I.A.P.B. and E.G.R. developed the methodology. Formal analysis and investigation were conducted by M.B.R., I.A.P.B. and E.G.R.; M.B.R. and E.G.R. prepared the original draft. M.B.R., E.G.R. and A.C.L.R. contributed to writing, reviewing, and editing the manuscript. Supervision was provided by D.L.B. and A.C.L.R. All authors discussed the results and contributed to the final version of the manuscript.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no competing interests.
Ethical approval
Not applicable.
Additional information
Communicated by Hassan Babaie.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Synopsis: given the importance of sustainable water management amid climate change and scarcity, this study developed a prototype for automated reservoir volume measurement, aiming to reduce losses and conserve resources.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Ribeiro, M.B., Rocha, E.G., de Paiva Brandão, I.A. et al. IoT tank level measurement device for improving water distribution system operation. Earth Sci Inform 18, 359 (2025). https://doi.org/10.1007/s12145-025-01869-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s12145-025-01869-y