Next Article in Journal
Investigation of Laser-Based Mo-Doped ZnO Nanoparticle Production and Photocatalysis Application
Previous Article in Journal
A Hybrid System for Automated Diagnosis of Inflammatory Skin Diseases: Neural Networks and Survey-Based Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Modeling Energy Losses in a Wireless Sensor Network for Monitoring Environmental Parameters in a Livestock Building †

Department of Automatics and Electronics, University of Ruse, 7004 Ruse, Bulgaria
*
Author to whom correspondence should be addressed.
Presented at the International Conference on Electronics, Engineering Physics and Earth Science (EEPES 2025), Alexandroupolis, Greece, 18–20 June 2025.
Eng. Proc. 2025, 104(1), 49; https://doi.org/10.3390/engproc2025104049
Published: 27 August 2025

Abstract

This article presents a study related to the determination of the energy losses in the nodes of a wireless sensor network during its operation. The sensor network is designed to collect real-time data on some environmental parameters in a livestock building. Measurements of the charge level of the batteries powering the network nodes were carried out and models describing the process of battery discharge over time were obtained. It was found that the most suitable for describing the process of battery discharge over time is the linear model, with the coefficient of determination R2 in this case varying between 0.96 and 0.99.

1. Introduction

Wireless sensor networks (WSNs) are commonly used to provide measurement and control activities in various areas of life. The spread of their use is related to their flexibility, low cost, and low complexity of implementation. In the agricultural domain, WSNs are a set of autonomous sensor nodes that can monitor and collect data about the environment in real time from different locations using various sensors. Then, this data is sent wirelessly to a central base station, where it is additionally processed and analyzed. The use of WSNs in precision agriculture offers a lot of advantages that have a major impact on the way farmers manage their business [1]. One of the main advantages of WSNs is that they provide farmers with a tool that helps them to control the farm conditions in real time. By using this sensor data, farmers are better prepared to react to changes in weather conditions or respond to threats like diseases or pests.
A well-known limitation of WSN deployments is the operating life of the sensor nodes. Mostly running on batteries as their energy source, the reduced battery capacity is the main limitation of the lifetime of the sensor node [2]. So, it is necessary to evaluate the battery capacity, lifetime, and behavior, keeping in mind the tasks performed by the network modules.
The estimation of battery life in WSN nodes is a complex task because of the multiple many factors affecting their performance [3], leading to nonlinear behavior over time [4,5,6]. Two major approaches to solving such tasks are known [7]: (i) hardware-based solutions, using control boards for monitoring the current state of the battery; and (ii) software-based solutions, in which the state of the battery is modeled mathematically.
Technical solutions related to the first approach can be found in so-called smart batteries, where integrated circuits provide data about voltage, temperature, current, and in some cases, about the operating behavior of the battery. They are usually included in laptops, smartphones, and cameras. However, the use of such solutions increases the batteries’ production costs [8]. Usually, wireless sensor networks consist of a large number of nodes; therefore, in that case, the use of additional hardware to monitor the behavior of each node power source could be economically unprofitable.
Analytical battery models are usually based on a set of differential equations to estimate battery behavior. Such models are implemented in simulators in order to estimate the behavior of the WSN nodes before their actual deployment [9,10,11]. Real-world WSNs are usually based on low-cost hardware, so sometimes the possibility of using such analytical models along with such hardware is a question that needs to be evaluated. For that reason, some studies are published where the usefulness of analytical battery models with low complexity together with low-computational-power hardware is assessed [12,13,14,15].
This article presents a study related to the determination of the energy losses in the modules of a wireless sensor network during its operation. The sensor network is designed to collect real-time data on some environmental parameters in a livestock building. Measurements of the charge level of the batteries powering the nodes of the network were carried out and models describing the process of battery discharge over time were obtained.

2. Architecture and Basic Components of the Wireless Sensor Network

The architecture of the wireless sensor network is shown in Figure 1. The communication system includes a programmable logic controller, BECKOFF BC9000 (Beckhoff Automation GmbH & Co. KG, Verl, Germany), and wireless sensors that communicate (transmit/receive data) via an OPC server. The information received from the wireless sensors is transmitted through the base station to the personal computer, which, in turn, based on the received information, sends control signals to the controller in order to manage and control the microclimate parameters in the building.
The MIB520 (Consulting Measurement Technology GmbH, Gilching, Germany) was chosen as the base station, and the MDA100 sensor modules were chosen. The MDA100 series sensors have a precision thermistor, a light sensor (photocell), and a common prototyping area.
The sensor modules must be programmed beforehand. This is carried out in the MoteView 1.2 programming environment. It configures the base station and sets a list of sensor modules from which it can read data.

Wireless Sensor Network Software

Software has been developed that enables communication between the controller and the computer via an OPC server (Figure 2), as well as communication with the sensors that report the necessary parameters for the system. For this purpose, the LabView programming environment has been used. The front panel of the graphical user interface is shown in Figure 3. The NI OPC server is used to configure the communication between the computer and the controller.
The graphical user interface visualizes data from temperature and light sensors in tabular and graphical form, as well as the current voltage of the batteries, powering the base station and individual nodes of the sensor network.

3. Modeling the Battery Discharge Process of Wireless Sensor Network Nodes

The system was studied in order to verify the duration of operation of individual nodes in the sensor network and to model the change in the voltage of the batteries supplying them. The models show the behavior of the supply voltage over time, during the normal operation of the sensors. They can be used to precisely monitor the condition of the batteries, in order to replace them in a timely manner for recharging or to warn of an upcoming replacement if their discharge rate begins to differ dramatically from that of the model.
Battery voltage measurements were taken on four sensor modules from the network every 10 min for 24 h of continuous operation. The selected modules were located in the parts of the livestock building furthest from the base station. During this period of time, the battery charge level decreased by more than half. Some variations in the data were observed, which were most likely due to measurement noise. Figure 4 presents some of these measurements (every hour).
Regression analysis was used to obtain the models. The best models, together with their coefficients of determination, are presented in Table 1.
The results show that the most suitable for describing the battery discharge process over time is the linear model, as Figure 4 and Table 1 show that the coefficient of determination R2 in this case varies between 0.96 and 0.99. These models can be used to predict the time to reach the critical battery charge level set by the network operator, which will ensure a timely response without disrupting the normal operation of the system.

4. Conclusions

The architecture of a wireless sensor network for monitoring some environmental parameters in a livestock building is presented. The system consists of a personal computer, a programmable logic controller, and wireless sensors that communicate via an OPC server.
Software that ensures communication between the network modules via an OPC server and visualizes the measured parameters from the sensor nodes in digital and graphical form has been developed in the LabView environment.
Research has been conducted, and the variation in the voltage of the batteries powering the nodes in the sensor network has been modeled. The results show that the most suitable for describing the battery discharge process over time is the linear model, with the coefficient of determination R2 in this case varying between 0.96 and 0.99.
The created models can be used to precisely monitor the condition of batteries, with the aim of timely replacement for recharging or to warn of impending replacement if their discharge rate begins to differ drastically from that of the model.

Author Contributions

Conceptualization, S.P. and P.D.; methodology, S.P.; software, B.G.; validation, P.D., T.G. and S.P.; formal analysis, E.N.; investigation, B.G.; resources, B.G.; data curation, S.P.; writing—original draft preparation, S.P.; writing—review and editing, T.G. and P.D.; visualization, E.N.; supervision, P.D.; project administration, T.G.; funding acquisition, T.G. All authors have read and agreed to the published version of the manuscript.

Funding

The research was conducted within the framework of the European Union—Next Generation EU, through the National Recovery and Resilience Plan of the Republic of Bulgaria, project № BG-RRP-2.013–0001-C01.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ahmed, S. Energy Aware Software Defined Network Model for Communication of Sensors Deployed in Precision Agriculture. Sensors 2023, 23, 5177. [Google Scholar] [CrossRef] [PubMed]
  2. Behrens, C.; Bischoff, O.; Lueders, M.; Laur, R. Energy-efficient topology control for wireless sensor networks using online battery monitoring. Adv. Radio. Sci. 2007, 5, 205–208. [Google Scholar] [CrossRef]
  3. Kim, T.; Qiao, W. A hybrid battery model capable of capturing dynamic circuit characteristics and nonlinear capacity effects. IEEE Trans. Energy Convers. 2011, 26, 1172–1180. [Google Scholar] [CrossRef]
  4. Wang, Y.; Zhang, C.; Chen, Z. A Method for state-of-charge estimation of LiFePO4 batteries at dynamic currents and temperatures using particle filter. J. Power Sources 2015, 279, 306–311. [Google Scholar] [CrossRef]
  5. Lajara, R.J.; Perez-solano, J.J.; Pelegrí-sebastia, J. A method for modeling the battery state of charge in wireless sensor networks. IEEE Sens. J. 2015, 15, 1186–1197. [Google Scholar] [CrossRef]
  6. Gandolfo, D.; Brandão, A.; Patiño, D.; Molina, M. Dynamic model of lithium polymer battery–Load resistor method for electric parameters identification. J. Energy Inst. 2015, 88, 470–479. [Google Scholar] [CrossRef]
  7. Buchli, B.; Aschwanden, D.; Beutel, J. Battery state-of-charge approximation for energy harvesting embedded systems. In Wireless Sensor Networks. EWSN 2013. Lecture Notes in Computer Science; Demeester, P., Moerman, I., Terzis, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7772, pp. 179–192. [Google Scholar] [CrossRef]
  8. Rahimi-Eichi, H.; Ojha, U.; Baronti, F.; Chow, M.Y. Battery management system: An overview of its application in the smart grid and electric vehicles. IEEE Ind. Electron. Mag. 2013, 7, 4–16. [Google Scholar] [CrossRef]
  9. Razaque, A.; Elleithy, K.M. Energy-Efficient Boarder Node Medium Access Control Protocol for Wireless Sensor Networks. Sensors 2014, 14, 5074–5117. [Google Scholar] [CrossRef] [PubMed]
  10. Jabbar, S.; Minhas, A.A.; Imran, M.; Khalid, S.; Saleem, K. Energy Efficient Strategy for Throughput Improvement in Wireless Sensor Networks. Sensors 2015, 15, 2473–2495. [Google Scholar] [CrossRef] [PubMed]
  11. Mammu, A.S.K.; Hernandez-Jayo, U.; Sainz, N.; De la Iglesia, I. Cross-Layer Cluster-Based Energy-Efficient Protocol for Wireless Sensor Networks. Sensors 2015, 15, 8314–8336. [Google Scholar] [CrossRef] [PubMed]
  12. Rodrigues, L.M.; Montez, C.; Moraes, R.; Portugal, P.; Vasques, F. A Temperature-Dependent Battery Model for Wireless Sensor Networks. Sensors 2017, 17, 422. [Google Scholar] [CrossRef] [PubMed]
  13. Çakiroğlu, M. Software implementation and performance comparison of popular block ciphers on 8-bit low-cost microcontroller. Int. J. Phys. Sci. 2010, 5, 1338–1343. [Google Scholar]
  14. Capo-Chichi, E.P.; Guyennet, H.; Friedt, J.M. K-RLE: A new data compression algorithm for wireless sensor networks. In Proceedings of the International Conference on Sensor Technologies and Applications (SENSORCOMM), Athens, Greece, 18–23 June 2009; pp. 502–507. [Google Scholar] [CrossRef]
  15. Othman, S.B. Performance evaluation of encryption algorithm for wireless sensor networks. In Proceedings of the International Conference on Information Technology and e-Services (ICITeS), Sousse, Tunisia, 24–26 March 2012; pp. 1–8. [Google Scholar] [CrossRef]
Figure 1. Architecture of the system for communication via OPC server between wireless sensors and PLC.
Figure 1. Architecture of the system for communication via OPC server between wireless sensors and PLC.
Engproc 104 00049 g001
Figure 2. System communication with OPC server.
Figure 2. System communication with OPC server.
Engproc 104 00049 g002
Figure 3. Front panel for sensor information visualization.
Figure 3. Front panel for sensor information visualization.
Engproc 104 00049 g003
Figure 4. Battery voltage variation over time and the resulting linear regression models: (a) For node 1; (b) For node 2; (c) For node 3; and (d) For node 4.
Figure 4. Battery voltage variation over time and the resulting linear regression models: (a) For node 1; (b) For node 2; (c) For node 3; and (d) For node 4.
Engproc 104 00049 g004
Table 1. Results from regression analysis.
Table 1. Results from regression analysis.
Node No.Model EquationR2
Node 1V = −0.0673x + 3.0790.967
Node 2V = −0.07429xT + 2.9030.9959
Node 3V = −0.06572xT + 2.9610.9734
Node 4V = −0.08414xT + 2.9320.9962
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Georgieva, T.; Penchev, S.; Gaazi, B.; Nedelcheva, E.; Daskalov, P. Modeling Energy Losses in a Wireless Sensor Network for Monitoring Environmental Parameters in a Livestock Building. Eng. Proc. 2025, 104, 49. https://doi.org/10.3390/engproc2025104049

AMA Style

Georgieva T, Penchev S, Gaazi B, Nedelcheva E, Daskalov P. Modeling Energy Losses in a Wireless Sensor Network for Monitoring Environmental Parameters in a Livestock Building. Engineering Proceedings. 2025; 104(1):49. https://doi.org/10.3390/engproc2025104049

Chicago/Turabian Style

Georgieva, Tsvetelina, Stanislav Penchev, Belma Gaazi, Eleonora Nedelcheva, and Plamen Daskalov. 2025. "Modeling Energy Losses in a Wireless Sensor Network for Monitoring Environmental Parameters in a Livestock Building" Engineering Proceedings 104, no. 1: 49. https://doi.org/10.3390/engproc2025104049

APA Style

Georgieva, T., Penchev, S., Gaazi, B., Nedelcheva, E., & Daskalov, P. (2025). Modeling Energy Losses in a Wireless Sensor Network for Monitoring Environmental Parameters in a Livestock Building. Engineering Proceedings, 104(1), 49. https://doi.org/10.3390/engproc2025104049

Article Metrics

Back to TopTop