Real-Time IoT System for Environmental Monitoring and Heatstroke Alert During Field Training
Keywords:
Internet of Things, Real-Time Monitoring, Heatstroke PreventionAbstract
Field training in hot environments carries a high risk of heatstroke. Existing monitoring systems are typically limited to either biosignal tracking or environmental sensing alone and do not support group-based alerts or the “flag system” commonly applied in Thailand. This study developed an IoT-based system for real-time monitoring and alerting of heatstroke risk. The system employs Xiaomi Mijia sensors connected to an ESP32 microcontroller, transmitting data via MQTT to the NETPIE2020 platform. Node-RED processes the data to calculate the Heat Index and classify risk levels according to the Thai flag system, then sends group notifications via the LINE Messaging API. Field experiments were conducted at three training sites over five weeks, collecting more than 150,000 records from 15 military trainees. Results showed that the system delivered risk alerts within 3–5 seconds, with temperature deviations of no more than ±0.5 °C and humidity deviations of no more than ±3%. The system maintained stable connectivity without data loss. Compared with systems that rely on HTTP polling, the proposed solution delivered faster alerts, higher accuracy, and lower costs, demonstrating strong potential for practical application in Thailand’s military training context.
References
กรมแพทย์ทหารบก. (2563). ประกาศกรมแพทย์ทหารบกเรื่อง คําแนะนําการป้องกัน การเฝ้าระวังและการปฐมพยาบาลการเจ็บป่วยจากความร้อน. https://amed.rta.mi.th/main/download/upload/upload-20210427161318.pdf
วิจิตตรา คุ้มวงษ์ และสรวง รุ่งประกายพรรณ. (2565). การพัฒนาชุดอุปกรณ์อินเตอร์เน็ตของสรรพสิ่งสำหรับติดตามอุณหภูมิและความชื้นของการเก็บรักษายา. Thai Bulletin of Pharmaceutical Sciences, 17(2), 101–118.
Egho-Promise, E., Sitti, M., Hutchful, N., & Agangiba, W. A. (2024). IoT-enhanced weather monitoring system: Affordable hardware solution for real-time data collection, storage, and predictive analysis. European Journal of Computer Science and Information Technology, 12(1), 43–56. https://doi.org/10.37745/ejcsit2013/vol12n14356
Epstein, Y., & Yanovich, R. (2019). Heatstroke. The New England Journal of Medicine, 380(25), 2449–2459. https://doi.org/10.1056/NEJMra1810762
Ghattamaneni, S., & Alsbou, N. (2024). Temperature call alert to prevent child death from heatstroke in smart car using IoT. International Journal of Innovative Science and Research Technology, 9(6), 148–159. https://doi.org/10.38124/ijisrt/IJISRT24JUN177
Hassan, M. N., Islam, M. R., Faisal, F., Semantha, F. H., Siddique, A. H., & Hasan, M. (2020). An IoT based environment monitoring system. In 2020 3rd International Conference on Intelligent Sustainable Systems (pp. 1119-1124). IEEE Xplore. https://doi.org/10.1109/ICISS49785.2020.9316050
Khan, M., Qureshi, M., Hasib, A., Faiz, M., Sarwar, H., & Shamim, F. (2023). Development of a wearable heat stroke detection and controlling system. Pakistan Journal of Science, 75(4), 645–651.
Line Developers. (n.d.). Messaging API overview. https://developers.line.biz/en/docs/messaging-api/overview/
Maroli, G., Rosati, G., Suárez-García, S., Bedmar-Romero, D., Kobrin, R., González-Laredo, Á., Urban, M., Alvárez-Diduk, R., Ruiz-Molina, D., & Merkoçi, A. (2024). Wearable, battery-free, wireless multiplexed printed sensors for heat stroke prevention with mussel- inspired bio-adhesive membranes. Biosensors and Bioelectronics, 260, Article 116421. https://doi.org/10.1016/j.bios.2024.116421
Murthy, M. S., Kumar, R. P. R., Saikiran, B., Nagaraj, I., & Annavarapu, T. (2023). Real time weather monitoring system using IoT. E3S Web of Conferences, 391, Article 01142. https://doi.org/10.1051/e3sconf/202339101142
Narindrarangkura, P., Hatthachote, P., Jongcherdchootrakul, K., Khiewchaum, R., & Rangsin, R. (2024). Using predictive analytics to improve surveillance of heat-related illness during military training. Journal of Southeast Asian Medical Research, 8, Article e0189. https://doi.org/10.55374/jseamed.v8.189
Paengkaew, W., Limsakul, A., Kokkaew, E., Sooktawee, S., Muangnim, P., Naban, O., Aroonchan, N., Patpai, A., Kitpakornsanti, K., & Kammuang, A. (2023). Development of a hot weather warning tool for heat index monitoring in Thailand, Journal of Public Health and Development, 21(3), 1–18. https://doi.org/10.55131/jphd/2023/210301
Silawarawet, K., Kaewchukul, P., & Saadprai, S. (2025). Heat stroke warning system prototype for athletes: A pilot study. Sensors, 25(2), Article 294. https://doi.org/10.3390/s25020294
Son, T. W., Ramli, D. A., & Aziz, A. A. (2021). Wearable heat stroke detection system in IoT-based environment. Procedia Computer Science, 192, 3686–3695. https://doi.org/10.1016/j.procs.2021.09.142