Wireless Sensor Network Simulation for Room Temperature Monitoring Based on Python

Authors

  • Nayla Firdauziyah Rahman Universitas Madura Author
  • Resty Amylia Margareta universitas madura Author

Keywords:

Wireless Sensor Network, Python, Temperature Monitoring, Delay, Packet Loss, Throughput.

Abstract

This study examines the design and simulation process of a Wireless Sensor Network (WSN) that is used to monitor room temperature in real time using the Python programming language as the main tool. The system is built to observe temperature changes at several points in a room through three sensor nodes that are interconnected and integrated with a central server or sink node. Each node acts as a data transmitter, where each sensor detects the surrounding temperature and then sends the measurement results along with delay information to the control center for further analysis. Simulation test results show that the system is capable of operating with a fairly high level of reliability. The average delay value was recorded at around 0.25 seconds, with a packet loss rate ranging from 5 to 10%, and an average throughput of 0.85 packets per second. These results indicate that the system has good Quality of Service (QoS) performance in terms of connection stability and data transmission speed between nodes. Based on the analysis conducted, it can be concluded that the use of Python as a means of simulating wireless sensor networks is proven to be efficient and easy to implement for IoT-based temperature monitoring applications. This system can serve as a foundation for further research development towards practical application using physical sensors, particularly in small to medium-scale environmental monitoring systems that require high efficiency and reliability. 

Downloads

Download data is not yet available.

Author Biographies

  • Nayla Firdauziyah Rahman, Universitas Madura

    Informatics Department, University of Madura

  • Resty Amylia Margareta, universitas madura

    Informatics Department, University of Madura

References

[1] Rejeb, A., Keogh, J. G., & Treiblmaier, H. (2022). The Big Picture on the Internet of Things and the Smart City. Technological Forecasting & Social Change, 188, 122271. doi: 10.1016/j.techfore.2022.122271.

[2] Syed, A. S., Sierra-Sosa, D., Kumar, A., & Elmaghraby, A. S. (2021). IoT in Smart Cities: A Survey of Technologies, Practices, and Challenges. Applied Sciences, 11(18), 9042. doi: 10.3390/app11189042.

[3] Khalifeh, A., & Darabkh, K. A. (2021). Wireless Sensor Networks for Smart Cities. Electronics, 10(2), 218. Doi: 10.3390/electronics100218.

[4] Ahmad Khan, S. (2023). Internet of Things Connected Wireless Sensor Networks for Smart Cities: Challenges and Opportunities. Journal of Urban Technology. Doi: 10.1080/10630732.2023.2175246.

[5] Ullah, A., Anwar, S. M., et al. (2023). Smart Cities: The Role of IoT and Machine Learning in Realizing a Data-Centric Smart Environment. Complex & Intelligent Systems. Doi: 10.1007/s40747-023-01175-4.

[6] Du, R., Li, Y., et al. (2018). A Survey on Deployment and Management for Smart City Monitoring Systems. IEEE Communications Surveys & Tutorials, 20(4), 2918–2951. Doi: 10.1109/COMST.2018.2869090.

[7] Zeng, F., et al. (2024). Sensors on Internet of Things Systems for the Sustainable Future. IEEE Access, 12, 14865–14878. Doi: 10.1109/ACCESS.2024.3245678.

[8] Sharma, H., Haque, A., & Blaabjerg, F. (2021). Machine Learning in Wireless Sensor Networks for Smart Cities: A Survey. Electronics, 10(9), 1012. Doi: 10.3390/electronics10091012.

[9] Martínez, J. F., García, A., Sendra, S., & Lloret, J. (2007). QoS in Wireless Sensor Networks: Survey and Approach. ACM Computing Surveys, 39(3), 738–754. Doi: 10.1145/1352694.1352715.

[10] Putra, F. P. E., Ubaidi, U., Mayangsari, D., & Hasanah, N. (2024). Netvista Public Wireless Network Quality Analysis Using QoS Parameters. Brilliance: Research of Artificial Intelligence, 4(1), 443–452. Doi: 10.47709/brilliance.v4i1.4388.

[11] Pundir, M., et al. (2021). A Systematic Review of Quality of Service in Wireless Sensor Networks for Real-Time Applications. Computers & Electrical Engineering, 93, 107235. Doi: 10.1016/j.compeleceng.2021.107235.

[12] Sun, G., Shang, X., & Zuo, Y. (2018). La-CTP: Loop-Aware Routing for Energy-Harvesting Wireless Sensor Networks. Sensors, 18(2), 434. https://doi.org/10.3390/s18020434

[13] Mazhar, T., et al. (2023). Quality of Service (QoS) Performance Analysis in Next-Generation WSNs. Symmetry, 15(2), 513. https://doi.org/10.3390/sym15020513

[14] F. P. E. Putra, U. Ubaidi, M. Aziz, M. Irfan, and R. Alim, “Improving Network Service Quality in Parts of Sampang City: QoS Evaluation and User Perception of QoE,” Brilliance: Research of Artificial Intelligence, vol. 4, no. 1, pp. 408–412, 2024, doi: 10.47709/brilliance.v4i1.4311.

[15] Chen, S., Zhang, L., Tang, Y., Shen, C., Kumar, R., Yu, K., Tariq, U., & Bashir, A. K. (2020). Indoor Temperature Monitoring Using Wireless Sensor Networks: A SMAC Application in Smart Cities. Sustainable Cities and Society, 61, 102333. Doi: 10.1016/j.scs.2020.102333.

[16] Arbula, D., & Lenac, K. (2013). Pymote: High Level Python Library for Event-Based Simulation and Evaluation of Distributed Algorithms. Int. J. of Distributed Sensor Networks, Article ID 797354. Doi: 10.1155/2013/797354.

[17] Sharma, R., & co-authors. (2020). Modelling and Simulation Frameworks for Wireless Sensor Networks. IET Wireless Sensor Systems. Doi: 10.1049/iet-wss.2020.0046.

[18] Pundir, M., et al. (2021). A Systematic Review of Quality of Service in Wireless Sensor Networks for Real-Time Applications. Computers & Electrical Engineering, 93, 107235. Doi: 10.1016/j.compeleceng.2021.107235.

[19] Martínez-Ortega, J.-F., García, A., Sendra, S., & Lloret, J. (2007). QoS in Wireless Sensor Networks: Survey and Approach. ACM Computing Surveys. Doi: 10.1145/1352694.1352715.

[20] Sabri, Y., et al. (2024). An IoT-Based 5G Wireless Sensor Network: Design and Security Considerations. Emerging Telecommunications Technologies. Doi: 10.1002/ett.70025.

[21] Arbula, D., & Lenac, K. (2013). Pymote: High Level Python Library for Event-Based Simulation and Evaluation of Distributed Algorithms. Int. J. of Distributed Sensor Networks. Doi:10.1155/2013/797354.

[22] Heikalabad, S. R., Rasouli, H., Nematy, F., & Rahmani, N. (2011). QEMPAR: QoS and Energy Aware Multi-Path Routing Algorithm for Real-Time Applications in Wireless Sensor Networks. arXiv preprint arXiv:1104.1031

[23] Kim, B.-S., Kim, K.-I., Shah, B., Chow, F., & Kim, K.-H. (2019). Wireless Sensor Networks for Big Data Systems. Sensors, 19(7), 1565. Doi: 10.3390/s19071565.

[24] Kim, B.-S., et al. (2019). Wireless Sensor Networks for Big Data Systems. Sensors, 19(7), 1565. Doi: 10.3390/s19071565.

[25] Enache, B. A., Banica, C. K., & Bogdan, A. G. (2023). Performance Analysis of MQTT Over WebSocket for IoT Applications. Scientific Bulletin of Electrical Engineering Faculty. Doi: 10.2478/sbeef-2023-0008.

[26] Putra, F. P. E., Ubaidi, U., Holipah, M., Mahmud, M. A., & Paradina, R. (2024). Comparing the Performance of LoRaWAN and MQTT Protocols for IoT Sensor Networks. Jurnal Informasi dan Teknologi Digital, 6(2), 221–228. https://doi.org/10.60083/jidt.v6i2.565

[27] Mittal, M., et al. (2021). Machine Learning Techniques for Energy Efficiency and QoS in Wireless Sensor Networks. Energies, 14(11), 3125. Doi: 10.3390/en14113125.

[28] Chen, S., et al. (2020). Indoor Temperature Monitoring Using Wireless Sensor Networks: A SMAC Application in Smart Cities. Sustainable Cities and Society, 61, 102333. Doi: 10.1016/j.scs.2020.102333.

[29] Duobiene, S., et al. (2022). Development of Wireless Sensor Network for Environment Monitoring and Its Implementation Using SSAIL Technology. Sensors, 22(14), 5343. Doi: 10.3390/s22145343.

[30] Pundir, M., et al. (2021). A Systematic Review of Quality of Service in Wireless Sensor Networks for Real-Time Applications. Computers & Electrical Engineering, 93, 107235. Doi: 10.1016/j.compeleceng.2021.107235.

[31] Martínez-Ortega, J.-F., et al. (2007). QoS in Wireless Sensor Networks: Survey and Approach. ACM Computing Surveys. Doi: 10.1145/1352694.1352715.

[32] Putra, F. P. E., Ubaidi, U., Mayangsari, D., & Hasanah, N. (2024). Netvista Public Wireless Network Quality Analysis Using Quality Of Service Parameters. Brilliance: Research of Artificial Intelligence, 4(1), 443–452. https://doi.org/10.47709/brilliance.v4i1.4388

[33] Sharma, R., & Singh, D. (2020). Modelling and Simulation Frameworks for Wireless Sensor Networks. IET Wireless Sensor Systems. Doi: 10.1049/iet-wss.2020.0046.

[34] Putra, F. P. E., Ubaidi, U., Mayangsari, D., & Hasanah, N. (2024). Netvista Public Wireless Network Quality Analysis Using QoS Parameters. Brilliance: Research of Artificial Intelligence, 4(1), 443–452. Doi: 10.47709/brilliance.v4i1.4388.

[35] Putra, F. P. E., Ubaidi, U., Mahendra, M., Surur, M., & Rizki, A. (2024). Effect of Distance on Wi-Fi Signal Quality in the Home Environment. Brilliance: Research of Artificial Intelligence, 4(1). https://doi.org/10.47709/brilliance.v4i1.4319

[36] Putra, F. P. E., & Safiuddin, S. (2023). Strategi Efisiensi Wireless Sensor Network (WSN). ITBI – Informatics for Educators and Professionals: Journal of Informatics, 8(1), 52-56. Doi: 10.51211/itbi.v8i1.2441

[37] Kim, B.-S., et al. (2019). Wireless Sensor Networks for Big Data Systems. Sensors, 19(7), 1565. Doi: 10.3390/s19071565.

[38] Arbula, D., & Lenac, K. (2013). Pymote: High Level Python Library for Event-Based Simulation and Evaluation of Distributed Algorithms. Int. J. of Distributed Sensor Networks. Doi: 10.1155/2013/797354.

[39] Donta, P. K., et al. (2022). Delay-aware Data Fusion in Duty-Cycled Wireless Sensor Networks: A Q-learning Approach. Sustainable Computing: Informatics and Systems, 33, 100642. Doi: 10.1016/j.suscom.2021.100642.

[40] Sabri, Y., et al. (2024). An IoT-Based 5G Wireless Sensor Network: Design and Security Considerations. Emerging Telecommunications Technologies. Doi: 10.1002/ett.70025.

[41] Enache, B. A., Banica, C. K., & Bogdan, A. G. (2023). Performance Analysis of MQTT Over WebSocket for IoT Applications. Scientific Bulletin of Electrical Engineering Faculty. Doi: 10.2478/sbeef-2023-0008.

[42] Mittal, M., et al. (2021). Machine Learning Techniques for Energy Efficiency and QoS in Wireless Sensor Networks. Energies, 14(11), 3125. Doi: 10.3390/en14113125.

[43] Putra, F. P. E., Ubaidi, U., Huda, M. A., Hasbullah, H., & Rohman, A. (2024). Computer Network Management Optimization Through Big Data Analysis Using Time Series Analysis Method. Brilliance: Research of Artificial Intelligence, 4(1), 434–442. Doi: 10.47709/brilliance.v4i1.4373.

[44] Putra, F. P. E., Ubaidi, U., Mayangsari, D., & Hasanah, N. (2024). Netvista Public Wireless Network Quality Analysis Using Quality Of Service Parameters. Brilliance: Research of Artificial Intelligence, 4(1), 443–452. https://doi.org/10.47709/brilliance.v4i1.4388

[45] Putra, F. P. E., Ubaidi, U., Aziz, M., Irfan, M., & Alim, R. (2024). Improving Network Service Quality in parts of Sampang City: QoS Evaluation and User Perception of QoE. Brilliance: Research of Artificial Intelligence, 4(1), 408–412. Doi: 10.47709/brilliance.v4i1.4311.

[46] Martínez-Ortega, J.-F., et al. (2007). QoS in Wireless Sensor Networks: Survey and Approach. ACM Computing Surveys. Doi: 10.1145/1352694.1352715.

[47] Sharma, R., & Singh, D. (2020). Modelling and Simulation Frameworks for Wireless Sensor Networks. IET Wireless Sensor Systems. Doi: 10.1049/iet-wss.2020.0046.

[48] Arbula, D., & Lenac, K. (2013). Pymote: High Level Python Library for Event-Based Simulation and Evaluation of Distributed Algorithms. Int. J. of Distributed Sensor Networks. Doi: 10.1155/2013/797354.

[49] Mittal, M., et al. (2021). Machine Learning Techniques for Energy Efficiency and QoS in Wireless Sensor Networks. Energies, 14(11), 3125. Doi: 10.3390/en14113125.

[50] Rachman, A. F., Putra, F. P. E., Syirofi, S., & Wahid, D. (2024). Case Study of Computer Network Development for the Internet of Things (IoT) Industry in an Urban Environment. Brilliance: Research of Artificial Intelligence, 4(1), 399-407. Doi: 10.47709/brilliance.v4i1.4302.

Published

23-10-2025

How to Cite

Wireless Sensor Network Simulation for Room Temperature Monitoring Based on Python. (2025). Karapan Network Journal : Journal Computer Technology and Mobile Ad Hoc Network, 1(01). https://ejournal.omahtabing.com/knj/article/view/27

Most read articles by the same author(s)