Design, Simulation, and Implementation of an IIoT-based Temperature and Humidity Monitoring System with Single-Core Infinite Loop Prevention and Fault Tolerance for Multi-Sensor and Connectivity Failures
DOI:
https://doi.org/10.61453/joit.v2025no31Keywords:
IIoT, ESP8266, DHT22, Infinite loop prevention, MQTT, BangladeshAbstract
The purpose of this research is to develop and implement a robust monitoring system that can function with the constraints of a single-core processing system, such as an ESP 8266, to overcome the issue of infinite loop faced when one or more subsystems malfunction, such as the loss of data or server connectivity. This paper describes a novel approach wherein the implementation of an Industrial Internet of Things (IIoT) based temperature and humidity monitoring system resolves the infinite loop issue and enables the development of highly robust monitoring solutions. The output from such a system can be subsequently integrated into other systems that can respond to the monitored values in real time without disruptions. The proposed mechanism utilizes an ESP8266 microcontroller for processing and wireless connectivity, DHT22 sensors for temperature and humidity measurements, an LCD for real-time monitoring, and the Message Queuing Telemetry Transport (MQTT) protocol to store data in the Adafruit IO platform for live off-site monitoring and data storage. Testing demonstrated that the system could handle up to three sensor failures out of four, Wi-Fi network and server disconnections, and automatic reconnections after five seconds. The system was able to perform error handling while maintaining the data flow from the sensors to the local data display LCD without interruptions during all tested scenarios. Based on several trials, the system succeeds at addressing a wide range of errors and disruptions, resulting in an ideal solution for the sectors that require precise monitoring to attain a wide range of operational objectives.
References
Bhuyan M. H. & Sheikh, M. (2021). Designing, Implementing, and Testing of a Microcontroller and IoT-based Pulse Oximeter Device. IOSR Journal of Electrical and Electronics Engineering, 16(5), 38-48. https://www.iosrjournals.org/iosr-jeee/Papers/Vol16-Issue5/Ser-2/E1605023848.pdf
Bhuyan, M. H., Ali, M. A., Khan, S. A., Islam, M. R., Islam, T., & Akter, J. (2023). Design and Implementation of Solar Power and an IoT-Based Pisciculture Management System. Journal of Engineering Research and Reports, 24(2), 15-27. https://doi.org/10.9734/jerr/2023/v24i2799.
Dinmohammadi, F., Farook, A. M., & Shafiee, M. (2025). Improving energy efficiency in buildings with an IoT-based smart monitoring system. Energies. 18(5), 1269. https://doi.org/10.3390/en18051269.
Hailan, M. A., Ghazaly, N. M., & Albaker, B. M. (2024). ESPNow Protocol-Based IIoT System for Remotely Monitoring and Controlling Industrial Systems. Journal of Robotics and Control (JRC). 5(6), 1924-1942. https://doi.org/10.18196/jrc.v5i6.21925.
Hajlaoui, R., Moulahi, T., Zidi, S., El Khediri, S., Alaya, B., & Zeadally, S. (2024). Towards smarter cyberthreats detection model for Industrial Internet of Things (IIoT) 4.0. Journal of Industrial Information Integration. 39. https://doi.org/10.1016/j.jii.2024.100595.
Hendajani, F., Mughni, A., Wardhani, I. P., & Hakim, A. (2022). Modeling an Automatic Room Temperature and Humidity Monitoring System with Fan Control on the Internet of Things. ComTech: Computer, Mathematics, and Engineering Applications. 13(2), 75-85. https://doi.org/10.21512/comtech.v13i2.7433.
Huang, W., Wang, Q., & Jiang, F. (2023). Design of indoor temperature and humidity monitoring system based on Kalman Filter. IEEE 7th Information Technology and Mechatronics Engineering Conference (ITOEC). Chongqing, China. 863-866. https://doi.org/10.1109/ITOEC57671.2023.10292022.
Huang, Z., Du, X., Gou, Y., & Li, Q. (2021). Design of temperature and humidity control system based on ARM. IEEE 4th Advanced Information Management, Communications, Electronic and Automation Control Conference (IMCEC). Chongqing, China. 1564-1569. https://doi.org/10.1109/IMCEC51613.2021.9482228.
Kareem, H., & Dunaev, D. (2021). The working principles of ESP32 and analytical comparison of using low-cost microcontroller modules in embedded systems design. IEEE 4th International Conference on Circuits, Systems and Simulation (ICCSS). Kuala Lumpur, Malaysia. 130-135. https://doi.org/10.1109/ICCSS51193.2021.9464217.
Karima, N. N., Saikat, M. H., Molla, M. S. & Bhuyan, M. H. (2024). A Real-Time IoT-Enabled Automated Solar Panel Cleaning System with Dust Detection Employing Advanced Image Processing Technique. Proceedings of the 3rd International Conference on Advancement in Electrical and Electronic Engineering (ICAEEE), Gazipur, Bangladesh, 1-6. https://doi.org/10.1109/ICAEEE62219.2024.10561656.
Medagedara, O. V., & Liyanage, M. H. (2024). Development of an IoT-based Real-Time Temperature and Humidity Monitoring System for Factory Electrical Panel Rooms. Engineer. IE, Sri Lanka. LVII(1). 21-30. https://doi.org/10.4038/engineer.v57i1.7636.
Mubarakah, N., & Iddha, F. (2022). Prototype An ESP32-Based Room Humidity and Temperature Controller with IoT. IEEE 6th International Conference on Electrical, Telecommunication and Computer Engineering (ELTICOM). Medan, Indonesia. 121-126. https://doi.org/10.1109/ELTICOM57747.2022.10038085.
Paul, N. K., Saha, D., Biswas, K., Akter, S., Islam, R. T., & Bhuyan, M. H. (2023). Smart Trash Collection System–An IoT and Microcontroller-Based Scheme. Journal of Engineering Research and Reports, 24(11), 1-13. doi: https://doi.org/10.9734/jerr/2023/v24i11849.
Riadi, I., & Syaefudin, R. (2021). Monitoring and Control Food Temperature and Humidity using Internet of Things Based on Microcontroller. Jurnal Ilmiah Teknik Elektro Komputer dan Informatika. 7(1), 108. https://doi.org/10.26555/jiteki.v7i1.20213.
Talha, M. A., Rashed, R. R., Ahmad, S., Rofique, R., Bhuyan, M. H., Howlader, S., Parvez, M. S. & Hassan, M. (2023). IoT-Based Real Time Monitoring and Control System for Distribution Substation. Proceedings of the 10th International Conference on Power Systems (ICPS), Cox’s Bazar, Bangladesh, 1-6. https://doi.org/10.1109/ICPS60393.2023.10428721.
Toure, I., Sakouvogui, A., Bah, K. B., & Keita, M. (2022). Design and realization of digital console for monitoring temperature and humidity in a biodigester. International Advance Journal of Engineering Research (IAJER), 5(2), 1-6. https://www.iajer.com/wp-content/uploads/2022/02/A520106.pdf
Wang, C., Yang, X., & Xu, Y. (2020). Research on Intelligent Measurement and Control System of Warehouse Temperature and Humidity. IEEE 2nd International Conference on Artificial Intelligence and Advanced Manufacture (AIAM). Manchester, United Kingdom. 266-270. https://doi.org/10.1109/AIAM50918.2020.00060.
Yuan, H., Wang, Z., & Xia, L. (2020). Design of Temperature and Humidity Detection System for a Material Warehouse Based on GM. IEEE 4th Information Technology, Networking, Electronic, and Automation Control Conference (ITNEC). Chongqing, China. 2516-2519. https://doi.org/10.1109/ITNEC48623.2020.9085141.
Zuo, C., Li, Q., Liu, L., Zhu, X., Wang, J., Xiang, D., & Liu, Q. (2021). Design of Temperature and Humidity Measurement System Based on Single Chip Microcomputer. IEEE International Conference on Intelligent Computing, Automation and Systems (ICICAS). Chongqing, China. 294-297. https://doi.org/10.1109/ICICAS53977.2021.00067
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Journal of Innovation and Technology

This work is licensed under a Creative Commons Attribution 4.0 International License.