Automatic Daily Medication Reminder Tool Using an IoT-Based ESP532 Sensor

Authors

  • Ain Sahara Department of Instrumentation and Electronics, Sekolah Tinggi Teknologi Minyak dan Gas Bumi Balikpapan, Indonesia
  • Fitri Oktafiani Department of Instrumentation and Electronics, Sekolah Tinggi Teknologi Minyak dan Gas Bumi Balikpapan, Indonesia
  • Muhammad Saleh Department of Instrumentation and Electronics, Sekolah Tinggi Teknologi Minyak dan Gas Bumi Balikpapan, Indonesia
  • Muhammad Fensar Department of Instrumentation and Electronics, Sekolah Tinggi Teknologi Minyak dan Gas Bumi Balikpapan, Indonesia

DOI:

https://doi.org/10.26418/elkha.v18i1.103145

Keywords:

Patients, ESP32, IoT, Medication Monitoring, Limit Switch, Arduino, Android Application

Abstract

Patient compliance with medication schedules remains a major challenge, especially for individuals with chronic diseases requiring long-term and routine treatment. Missed or delayed doses frequently occur due to forgetfulness or the absence of monitoring. This study presents the design of an IoT-based daily medication consumption monitoring system using an ESP32 microcontroller. The system integrates a limit switch to detect the opening of a medicine box as an indicator of medication intake, and is supported by an LED, buzzer, and 16×2 LCD for local reminders and status display. An Android application is included for configuring schedules and receiving real-time notifications. A key methodological difference from previous ESP32-based medication reminder studies is that earlier systems rely mainly on time-based alerts without verifying whether the user actually responds. In contrast, the proposed approach employs sensor-based event detection to confirm physical interaction with the medication box, enabling behavioral verification rather than simple reminder delivery. IoT provides an unprecedented approach in the field of instrumentation and measurement, namely enabling instruments to detect, characterize, and analyze physical phenomena continuously and in real time. This allows the system to log actual user compliance in real time via Firebase. System development involves hardware design, Arduino-based ESP32 programming, and HTTP data communication using JSON processing. Experimental results show that the system reliably detects user actions, triggers reminders, and uploads consumption data. The system has been proven to provide timely notifications via LEDs and buzzers with 100% accuracy. Overall, the system offers a more accurate and responsive method for supporting daily medication adherence.

References

T. Hu and H. Qian, “Design and implementation of an intelligent medicine box capable of detecting user ’ s medication taking state,” vol. 123, no. Msmee, pp. 972–978, 2017.

L. Kamajaya, A. Pracoyo, L. N. Palupi, and A. R. Hidayat, “Sistem Telemonitoring Kesehatan Berbasis Iot,” J. Elektron. dan Otomasi Ind., vol. 10, no. 2, pp. 137–145, 2023.

A. Alarm, M. Adherence, and M. Scheduler, “Deepti Ameta, Kalpana Mudaliar and Palak Patel Gandhinagar Institute of Technology, Gandhinagar, Gujarat, India A,” vol. 6, no. 2, pp. 39–48, 2015.

J. A. Zhang, Z. Wei, C. G. Li, and C. B. Sun, “Piping system design of subsea manifold,” Appl. Mech. Mater., vol. 321–324, pp. 1779–1783, 2013.

C. R. Srinivasan, G. Charan, and P. C. S. Babu, “An IoT based SMART patient health monitoring system,” Indones. J. Electr. Eng. Comput. Sci., vol. 18, no. 3, pp. 1657–1664, 2020.

H. Tajwar, “Android application design for automatic tablet dispenser,” Int. J. Eng. Res. Technol., vol. 9, no. 7, pp. 1650–1652, 2020.

S. G. Jayandran and R. M. Akir, “IoT-based pill monitor and reminder for medication intake,” Evolution in Electrical and Electronic Engineering, vol. 3, no. 2, pp. 1007–1013, 2022.

Soepraoen, “Aplikasi pengingat minum obat di Desa Sumbersuko Kecamatan Wagir Kabupaten Malang,” J. ABM Mengabdi, 2021.

L. Wu, X. Tang, J. Long, Y. Gan, and B. Cao, “Design and implementation of an Android-based medication reminder app,” Int. J. Comput. Appl., vol. 2, no. 3, pp. 1–4, 2023.

M. Fauzan and N. Paramytha, “An Internet of Things-based automatic medicine consumption reminder box,” J. Eng. Appl. Technol., vol. 20, no. 2, pp. 744–751, 2023

B. Y. Ooi and S. Shirmohammadi, “The potential of IoT for instrumentation and measurement,” IEEE Instrum. Meas. Mag., vol. 23, no. 3, pp. 21–26, 2020.

S. Khan, A. N. Alvi, M. A. Javed, B. H. Roh, and J. Ali, “An efficient superframe structure with optimal bandwidth utilization and reduced delay for internet of things based wireless sensor networks,” Sensors (Switzerland), vol. 20, no. 7, 2020.

K. B. A. Bakar, F. T. Zuhra, B. Isyaku, and S. B. Sulaiman, “A Review on the Immediate Advancement of the Internet of Things in Wireless Telecommunications,” IEEE Access, vol. 11, no. March, pp. 21020–21048, 2023.

S. R. Jena, A. K. Yadav, S. Patel, and C. H. M. H. Saibaba, “Analysis on mobile cloud security and comparison of existing models,” Indian J. Comput. Sci. Eng., vol. 12, no. 3, pp. 580–590, 2021.

W. Xue, P. Kolaric, J. Fan, B. Lian, T. Chai, and F. L. Lewis, “Inverse Reinforcement Learning in Tracking Control Based on Inverse Optimal Control,” IEEE Trans. Cybern., vol. 52, no. 10, pp. 10570–10581, 2022.

B. Arnav, A. Aarthi, A. Shivam, A. Shivakumar, and A. A. Shankar, “IoT Based Health Monitoring System,” AIP Conf. Proc., vol. 2742, no. 1, 2024.

Ayu Syahfitri, “Internet of Things (IoT), Sejarah, Teknologi, dan Penerapannya,” Uranus J. Ilm. Tek. Elektro, Sains dan Inform., vol. 3, no. 1, pp. 113–120, 2025.

V. Deepa, C. S. Kumar, and T. Cherian, “Ensemble of multi-stage deep convolutional neural networks for automated grading of diabetic retinopathy using image patches,” J. King Saud Univ. - Comput. Inf. Sci., vol. 34, no. 8, pp. 6255–6265, 2022.

A. J. Indrawan, “IoT dan Blockchain : Tinjauan Tantangan Solusi Keamanan dan Privasi,” Univ. Komput. Indones., vol. 1, no. 1, pp. 1–13, 2023.

P. Parthiban, “IoT antennas for Industry 4.0—Design and manufacturing with an example,” in Proc. 2020 IEEE Int. IoT, Electronics and Mechatronics Conf. (IEMTRONICS), Sept. 2020, pp. 1–5.

Downloads

Published

2026-04-04

Issue

Section

Vol. 18 No.1 April 2026