ESP32 and ThingSpeak-Based Real-Time Vital-Sign Monitoring With a Web Dashboard

Authors

  • Ankith R
  • Amrutha S
  • Akash A Padanur
  • Gowri Y
  • Hemalatha
  • Chethan K S

Keywords:

Disease prediction, ESP32, Flask, Healthcare monitoring, Internet of Things, Machine learning, ThingSpeak

Abstract

Continuous health observation and early disease detection are increasingly important, yet conventional healthcare still relies on manual monitoring and frequent hospital visits. This article presents an AI Healthcare Bot System that combines Internet of Things (IoT) sensing, cloud storage, web technologies, and Machine Learning (ML) to provide real-time health monitoring and intelligent disease prediction. Heart rate and SpO₂ (MAX30100), body temperature (DS18B20), pulse, and ECG modules are interfaced with an ESP32 microcontroller, which uploads the measured vital signs over Wi-Fi to the ThingSpeak cloud platform. A Flask-based web application with SQLite3-backed registration and login retrieves the cloud data through its API, displays live readings and charts, and accepts symptoms entered by the user. Two prediction modes are supported: symptom-based disease prediction using a Random Forest classifier, and vital-sign-based health-condition prediction using Logistic Regression, Random Forest, Decision Tree, Support Vector Machine (SVM), and K-Nearest Neighbors (KNN) classifiers. Experimental evaluation on a curated symptom dataset (4,920 samples, 132 binary features, 41 disease classes) and a vital-sign dataset (3,600 samples, 6 features, 5 condition classes) yielded macro-averaged F1-scores of 0.94 (symptom Random Forest) and up to 0.93 (vital-sign Random Forest). Sensor readings were validated against calibrated clinical devices, giving mean absolute errors of 2.8 BPM (heart rate), 1.4% (SpO₂), 0.31°C (temperature), and 6.2/4.8 mm Hg (systolic/diastolic pressure). The paper describes the five-layer architecture, the hardware and software design, the ML pipeline, and an evaluation methodology covering sensor accuracy, cloud transmission, web functionality, and prediction performance. The proposed solution is low-cost, portable, and suited to remote healthcare support and preventive care.

References

I. Shafi, S. Din, S. Farooq, I. de la Torre Díez, J. Breñosa, J. C. Martínez Espinosa, and I. Ashraf, “Design and development of patient health tracking, monitoring and big data storage using Internet of Things and real time cloud computing,” PLOS ONE, vol. 19, no. 3, Mar. 2024.

S. H. Mnaathr, “Design remote monitoring system for patients at real-time based on Internet of Things (IoT),” International Journal of Engineering and Manufacturing, vol. 13, no. 5, pp. 1–10, Oct. 2023.

S. Iranpak, A. Shahbahrami, and H. Shakeri, “Remote patient monitoring and classifying using the Internet of Things platform combined with cloud computing,” Journal of Big Data, vol. 8, Sep. 2021.

B. M. Mahmmod et al., "Patient Monitoring System Based on Internet of Things: A Review and Related Challenges With Open Research Issues," IEEE Access, vol. 12, pp. 132444-132479, 2024.

H. M. Kaidi, M. A. M. Izhar, R. A. Dziyauddin, N. E. Shaiful, and R. Ahmad, “A comprehensive review on wireless healthcare monitoring: System components,” IEEE Access, vol. 12, pp. 35008–35032, 2024.

MathWorks, “ThingSpeak REST API,” The MathWorks, Inc.

F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, no. 85, pp. 2825–2830, 2011.

L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001.

C. Cortes and V. Vapnik, “Support-vector networks,” Machine Learning, vol. 20, pp. 273–297, 1995.

L. Zhong et al., “Technological requirements and challenges in wireless body area networks for health monitoring: A comprehensive survey,” Sensors, vol. 22, no. 9, Art. no. 3539, May 2022.

T. Malche, S. Tharewal, P. K. Tiwari, M. Y. Jabarulla, A. A. Alnuaim, W. A. Hatamleh, and M. A. Ullah, “Artificial intelligence of things- (AIoT-) based patient activity tracking system for remote patient monitoring,” Journal of Healthcare Engineering, vol. 2022, Mar. 2022.

J. P. Leenen, L. Schoonhoven, and G. A. Patijn, “Wearable wireless continuous vital signs monitoring on the general ward,” Current Opinion in Critical Care, vol. 30, no. 3, pp. 275–282, Jun. 2024.

M. I. Ahmed and G. Kannan, “Secure and lightweight privacy preserving Internet of Things integration for remote patient monitoring,” Journal of King Saud University - Computer and Information Sciences, vol. 34, pp. 6895–6908, 2022.

S. M. R. Islam, D. Kwak, M. H. Kabir, M. Hossain and K. -S. Kwak, "The Internet of Things for Health Care: A Comprehensive Survey," IEEE Access, vol. 3, pp. 678-708, 2015.

H. Alemdar and C. Ersoy, “Wireless sensor networks for healthcare: A survey,” Computer Networks, vol. 54, no. 15, pp. 2688–2710, Oct. 2010.

T. Zachariah, N. Klugman, and P. Dutta, “ThingSpeak in the wild: Exploring 38K visualizations of IoT data,” Proceedings of the 20th ACM Conference on Embedded Networked Sensor Systems (SenSys '22), 2022.

S. Ashraf, S. P. Khattak, and M. T. Iqbal, “Design and implementation of an open-source and Internet-of-Things-based health monitoring system,” Journal of Low Power Electronics and Applications, vol. 13, no. 4, Oct. 2023.

M. S. S. Johnson and J. Mikael Eklund, "A Review of Photoplethysmography-based Physiological Measurement and Estimation, Part 1: Single Input Methods," 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Montreal, QC, Canada, 2020, pp. 923-927.

U. Debnath and S. Kim, “A comprehensive review of heart rate measurement using remote photoplethysmography and deep learning,” BioMedical Engineering OnLine, vol. 24, 2025.

Espressif Systems, “ESP32 series datasheet,” Espressif Systems, version 5.3, Oct. 2023.

T. M. Cover and P. E. Hart, “Nearest neighbor pattern classification,” IEEE Transactions on Information Theory, vol. IT-13, no. 1, pp. 21–27, Jan. 1967.

S. Sakphrom, T. Limpiti, K. Funsian, S. Chandhaket, R. Haiges, and K. Thinsurat, “Intelligent medical system with low-cost wearable monitoring devices to measure basic vital signals of admitted patients,” Micromachines, vol. 12, no. 8, Jul. 2021.

Published

2026-11-25

How to Cite

Ankith R, Amrutha S, Akash A Padanur, Gowri Y, Hemalatha, & Chethan K S. (2026). ESP32 and ThingSpeak-Based Real-Time Vital-Sign Monitoring With a Web Dashboard. Research & Review: Electronics and Communication Engineering, 50–64. Retrieved from https://matjournals.net/engineering/index.php/RRECE/article/view/4504