Continuous monitoring of vital physiological parameters is essential for timely diagnosis and effective healthcare management, especially for elderly patients, chronic cases, and individuals under home care. Traditional patient monitoring systems are often bulky, expensive, and confined to hospital environments, limiting their accessibility and continuous usage. This project presents the design and implementation of a Smart Patient Monitoring System (SPMS) using an ESP32 microcontroller. The system continuously measures vital parameters such as body temperature, heart rate, ECG signals, and environmental conditions, and displays the data on a local OLED screen. The ESP32’s built-in Wi-Fi capability enables real-time data transmission to a cloud platform for remote monitoring. Threshold-based alert mechanisms are incorporated to notify caregivers during abnormal physiological conditions, enhancing patient safety. The proposed system is compact, low-cost, and suitable for bedside and home-care applications. The modular design allows future expansion with additional sensors and advanced analytics, making it a scalable solution for modern healthcare monitoring.
Introduction
The rapid development of embedded systems, sensor technology, and the Internet of Things (IoT) has significantly improved healthcare by enabling intelligent, continuous, and remote patient monitoring. Conventional monitoring systems depend on periodic manual observations by healthcare professionals, making them labor-intensive, time-consuming, and less effective in detecting sudden physiological abnormalities. To overcome these limitations, this study proposes a Smart Patient Monitoring System, an IoT-enabled embedded healthcare platform that continuously monitors multiple physiological parameters, including body temperature, heart rate, oxygen saturation (SpO?), electrocardiogram (ECG), and ambient humidity. The collected data are processed by an ESP32 microcontroller and transmitted wirelessly to an IoT cloud platform, allowing physicians and caregivers to monitor patients remotely. The system also incorporates automated threshold-based alerts to detect abnormal health conditions early, thereby improving patient safety, supporting timely medical intervention, reducing healthcare costs, and enabling efficient home-based and telemedicine services.
Existing System
Conventional patient monitoring systems are primarily designed for hospitals and intensive care units, where they provide accurate measurement of vital signs such as heart rate, ECG, blood pressure, and oxygen saturation. However, these systems are expensive, bulky, rely on wired connections, and require trained medical personnel for operation and interpretation. Their dependence on centralized monitoring limits patient mobility and makes long-term home monitoring impractical. Furthermore, traditional systems generally lack IoT-based remote accessibility, preventing healthcare professionals from monitoring patients outside hospital settings. These limitations highlight the need for a compact, affordable, and intelligent monitoring system capable of continuous remote healthcare with automated alert generation.
Proposed System
The proposed Smart Patient Monitoring System is an IoT-based embedded platform that integrates multiple biomedical and environmental sensors with an ESP32 microcontroller for continuous health monitoring. The ESP32 serves as the central controller, performing sensor communication, data acquisition, preprocessing, threshold evaluation, local display, and wireless transmission. The monitored parameters include body temperature, heart rate, oxygen saturation (SpO?), ECG signals, and ambient humidity. Real-time sensor readings are displayed locally on a 1.3-inch OLED display while simultaneously being uploaded to an IoT cloud platform through the ESP32's built-in Wi-Fi module. A buzzer-based alert mechanism immediately notifies caregivers whenever any physiological parameter exceeds predefined clinical thresholds. The proposed system is designed to be compact, energy-efficient, low-cost, and suitable for hospitals, home healthcare, and telemedicine applications.
Hardware Architecture
The hardware consists of:
ESP32 Development Board as the central processing unit.
DS18B20 digital temperature sensor for body temperature measurement.
MAX30102 pulse oximeter for heart rate and oxygen saturation (SpO?).
AD8232 ECG sensor for monitoring cardiac electrical activity.
DHT11 sensor for ambient humidity measurement.
1.3-inch OLED display for local visualization of patient data.
Active buzzer for audible emergency alerts.
The ESP32 provides high processing capability, integrated Wi-Fi connectivity, multiple GPIO interfaces, and low power consumption, making the system portable, reliable, and cost-effective.
Sensor Data Acquisition and Processing
The system continuously collects physiological and environmental data through dedicated sensors:
The DS18B20 communicates using the One-Wire protocol to provide accurate digital body temperature measurements.
The MAX30102 uses the I²C interface and photoplethysmography (PPG) to measure heart rate and oxygen saturation.
The AD8232 captures analog ECG signals through surface electrodes, which are digitized using the ESP32's analog-to-digital converter.
The DHT11 measures ambient humidity via digital communication.
The ESP32 preprocesses sensor data through noise reduction, signal conditioning, parameter conversion, and threshold evaluation before displaying the processed values locally and transmitting them to the IoT cloud platform.
Physiological Parameters and Sensor Principles
The monitored parameters include:
Body Temperature: Measured using the semiconductor-based DS18B20 sensor for detecting fever, hypothermia, and infections.
Heart Rate and SpO?: Measured by the MAX30102 using photoplethysmography, where red and infrared light detect blood flow variations to estimate pulse rate and oxygen saturation.
Electrocardiogram (ECG): Acquired using the AD8232 sensor, which amplifies and filters cardiac electrical signals for continuous rhythm monitoring.
Ambient Humidity: Measured by the DHT11 using capacitive sensing to monitor environmental conditions affecting patient comfort.
Working Principle
The Smart Patient Monitoring System operates through four sequential stages:
Sensor Initialization: The ESP32 initializes all sensors, the OLED display, and Wi-Fi communication.
Data Acquisition: Sensors continuously collect physiological and environmental measurements.
Data Processing: The ESP32 performs signal conditioning, parameter conversion, and compares measured values against predefined clinical thresholds.
Monitoring and Alert Generation: Processed data are displayed on the OLED screen and uploaded to the IoT cloud. If any parameter exceeds its threshold, the ESP32 activates the buzzer and immediately transmits abnormal readings for remote medical attention.
This continuous cycle enables early detection of health abnormalities and supports prompt clinical decision-making.
Software Implementation
The embedded software is developed using the Arduino Integrated Development Environment (Arduino IDE) with a modular programming approach. During initialization, the firmware configures all communication interfaces, including One-Wire, I²C, ADC, and digital I/O required by the sensors, OLED display, and buzzer. The firmware then enters a continuous execution loop, periodically acquiring sensor data, converting them into meaningful physiological parameters, updating the OLED display, and preparing data for wireless transmission. The modular architecture ensures synchronized sensor operation, reliable data acquisition, efficient execution, and low power consumption.
Alert Generation and Decision Algorithm
After processing sensor data, the software compares each physiological parameter against predefined clinical thresholds:
If all values remain within normal ranges, the system continues routine monitoring.
If any parameter exceeds its threshold, the ESP32 immediately activates the buzzer and uploads abnormal readings to the IoT cloud platform, allowing healthcare professionals to respond promptly.
This automated decision-making process minimizes dependence on continuous manual supervision while improving emergency response.
IoT Communication and Remote Monitoring
The ESP32 utilizes its integrated IEEE 802.11 Wi-Fi interface to periodically transmit structured physiological data—including body temperature, heart rate, SpO?, ECG signals, and humidity—to an IoT cloud platform. This enables healthcare providers to remotely monitor patient health, observe long-term physiological trends, and support telemedicine services regardless of geographic location. The integration of cloud synchronization with automated alerts significantly improves response times during emergencies.
Software Development Environment
The embedded firmware was developed using Arduino IDE, which supports C/C++ programming and provides libraries for sensor integration, OLED displays, and wireless communication. Hardware schematics and circuit connections were designed using Fritzing, facilitating accurate documentation and verification of the electronic architecture.
Conclusion
The Smart Patient Monitoring System has been successfully designed and implemented using the ESP32 microcontroller and various biomedical sensors. The system is capable of continuously monitoring vital health parameters such as body temperature, heart rate, oxygen saturation, ECG signals, and humidity.
The measured values are displayed in real time, and an alert mechanism is used to notify caregivers whenever abnormal health conditions are detected. The integration of IoT technology enables remote monitoring of patient health data, allowing doctors and caregivers to access information from distant locations. This improves response time during medical emergencies and enhances patient safety. The system is designed using low-cost components, making it affordable and suitable for continuous operation in both hospital and home-care environments. The successful implementation of the Smart Patient Monitoring System demonstrates its reliability and effectiveness as a basic healthcare monitoring solution. The project highlights the importance of IoT-based embedded systems in modern healthcare applications and shows potential for further enhancement in future developments.
References
[1] Mamdiwar SD, Akshith R, Shakruwala Z, Chadha U, Srinivasan K, Chang CY. Recent advances on IoT-assisted wearable sensor systems for healthcare monitoring. Biosensors (Basel). 2021;11(10):372. doi:10.3390/bios11100372.
[2] Abdulmalek S, Albogamy FR, Alotaibi SS, et al. IoT-based healthcare-monitoring system towards improving quality of life: A review. Healthcare (Basel). 2022;10(11):1993.
[3] Ferdous J, Roy B, Hossen M, Islam MM. Implementation of IoT-based patient health monitoring system using ESP32 web server. Int J Adv Res. 2023;11(6):716-726. doi:10.21474/IJAR01/17119.
[4] Vyas H, Shukla H, Jivani MN. A portable IoT-based health monitoring framework using ESP32 for isolated and home-based patient care. J Electron Autom Eng. 2025;4(2):240-245. doi:10.46632/jeae/4/2/31.
[5] Mnaathr SH, et al. Design of a remote monitoring system for patients in real time based on the Internet of Things (IoT). Int J Eng Manuf. 2023;13(5):1-10.
[6] Ya\'acob N, Amin MZ, Aziz NF, et al. Design and implementation of a wireless health monitoring system for real-time patient data using ESP32. In: Proceedings of the IEEE 15th Control and System Graduate Research Colloquium (ICSGRC); 2024.
[7] Chougule AV, Bailakkanavar SR, Kale SM, et al. Optimizing space and time complexity for IoT-infused health monitoring system. In: Proceedings of the IEEE International Conference on Advances in Computing, Communication and Networking (ICAC2N); 2024.
[8] Rahman KKM, Mohamed NN, Zidan R, Alsarraj I, Hasan B. IoT-based wireless patient monitor using ESP32 microcontroller. In: Proceedings of the 24th International Arab Conference on Information Technology (ACIT). IEEE; 2023.
[9] Monitoring vital signs with IoT devices. IFAC-PapersOnLine. 2025;59(24):470-475. doi:10.1016/j.ifacol.2025.11.910.
[10] Mounika K, Akram SV. Wireless IoT-based continuous ECG monitoring using ESP32 and ThingSpeak-based performance analysis across age groups. Sens Actuators A Phys. 2025. doi:10.1016/j.sna.2025.117392.