Earthquake Alert: Development of an ESP32-Based Early Warning System Prototype using MPU6050 and SW-420 Sensor
Isi Artikel Utama
Abstrak
West Bandung Regency, West Java Province, is one of the areas with a significant earthquake risk due to the activity of the Lembang Fault and regional geological conditions. Earthquakes that occur suddenly may cause serious impacts on human safety, infrastructure, and activities in campus environments and public buildings. The limited availability of local, real-time, and easily accessible earthquake early warning systems highlights the need for an effective mitigation technology based on the Internet of Things (IoT). This study aims to design and implement an ESP32-based earthquake early warning system prototype integrated with Telegram notifications. The proposed system employs an MPU6050 sensor to measure vibration acceleration along the X, Y, and Z axes, while an SW-420 sensor is used as an initial vibration detector. The acceleration data are processed using the Root Mean Square (RMS) method and the Short Time Average/Long Time Average (STA/LTA) ratio to classify vibration conditions into four warning levels: safe, alert, warning, and danger. The classification results are displayed through local indicators and transmitted in real time to Node-RED using the MQTT (Message Queuing Telemetry Transport) protocol, then forwarded to users through Telegram notifications. The experimental results show that the system is capable of detecting vibration with a success rate of approximately 95%, a classification accuracy of 92%, and a data transmission delay of less than one second. Therefore, the proposed system has the potential to be implemented as a low-cost, responsive, and easily deployable earthquake early warning solution in earthquake-prone areas.
Rincian Artikel
Bagian
Cara Mengutip
Referensi
[1] E. Hussain, E. Gunawan, N. R. Hanifa, and Q. Zahro, “The seismic hazard from the Lembang Fault, Indonesia, derived from InSAR and GNSS data,” Natural Hazards and Earth System Sciences, vol. 23, no. 10, pp. 3185–3197, Oct. 2023, doi: 10.5194/NHESS-23-3185-2023.
[2] P. Tegar Wikantama SMP Muhammadiyah, J. Timur Muammar Bahalwan, M. A. Azzam Ghifary SMP Muhammadiyah, and J. Timur, “SIGEMPA : Sistem Peringatan Dini Gempa Bumi berbasis IoT dengan ESP32,” Jurnal Teknik Mesin, Elektro dan Ilmu Komputer, vol. 4, no. 1, pp. 63–70, Mar. 2024, doi: 10.55606/TEKNIK.V4I1.2937.
[3] R. M. Allen and D. Melgar, “Earthquake early warning: Advances, scientific challenges, and societal needs,” Annu. Rev. Earth Planet. Sci., vol. 47, pp. 361–388, May 2019, doi: 10.1146/ANNUREV-EARTH-053018-060457.
[4] M. S. Abdalzaher, H. A. Elsayed, M. M. Fouda, and M. M. Salim, “Employing Machine Learning and IoT for Earthquake Early Warning System in Smart Cities,” Energies 2023, Vol. 16, Page 495, vol. 16, no. 1, p. 495, Jan. 2023, doi: 10.3390/EN16010495.
[5] R. Pratiwi, L. Delsi Samsumar, A. Akbar, E. Suryadi, and U. Teknologi Mataram, “Rancang Bangun Prototype Sistem Pendeteksi Gempa berbasis IoT menggunakan Notifikasi Telegram,” Journal of Computer Science and Information Technology (JCSIT), vol. 1, no. 4, pp. 294–303, Sep. 2024, doi: https://doi.org/10.70248/jcsit.v1i4.
[6] R. Effendi, R. Kania, and M. Muhammad, “Rancang Bangun Pendeteksi Getaran Gempa berbasis Mikrokontroler IoT Arduino,” Journal of Innovation And Future Technology, vol. 3, no. 2, pp. 41–55, Aug. 2021, doi: 10.47080/IFTECH.V3I2.1533.
[7] S. Siswanto, Ngatono, and S. F. Saputra, “Prototype Sistem Peringatan Dini Bencana Gempa Bumi dan Tsunami Berbasis Internet of Things,” PROSISKO: Jurnal Pengembangan Riset dan Observasi Sistem Komputer, vol. 9, no. 1, pp. 60–66, May 2022, doi: 10.30656/PROSISKO.V9I1.4743.
[8] G. Cremen, C. Galasso, and E. Zuccolo, “Investigating the potential effectiveness of earthquake early warning across Europe,” Nat. Commun., vol. 13, no. 1, pp. 1–0, Dec. 2022, doi: 10.1038/S41467-021-27807-2.
[9] D. A.- Zahra, “Design of Earthquake Detection System Using MPU6050 and SW420 Sensors with Blynk Platform Integration,” Journal ELPER-Tech (Electronic Logic Power-Technology), vol. 1, no. 1, pp. 20–26, Mar. 2025, Accessed: May 20, 2026. [Online]. Available: https://jurnal.ugj.ac.id/index.php/ELPER-Tech/article/view/10177
[10] Q. Kong, R. M. Allen, L. Schreier, and Y. W. Kwon, “Earth Sciences: MyShake: A smartphone seismic network for earthquake early warning and beyond,” Sci. Adv., vol. 2, no. 2, pp. 1–8, Feb. 2016, doi: 10.1126/SCIADV.1501055;ISSUE:ISSUE:DOI.
[11] C. Chandrakumar, R. Prasanna, M. Stephens, and M. L. Tan, “Earthquake early warning systems based on low-cost ground motion sensors: A systematic literature review,” Frontiers in Sensors, vol. 3, pp. 1–18, Nov. 2022, doi: 10.3389/FSENS.2022.1020202/TEXT.
[12] A. Wardani, T. Rismawan, and Suhardi, “Sistem Kendali dan Pemantauan Filter Air Berbasis Mikrokontroler NodeMCU ESP32,” Jupiter (Jurnal Teknik Komputer), vol. 16, no. 1, pp. 49–60, Apr. 2024, doi: https://doi.org/10.5281/zenodo.10556455.
[13] H. R. Iskandar, D. I. Saputra, and H. Yuliana, “Eksperimental Uji Kekeruhan Air Berbasis Internet of Things Menggunakan Sensor DFRobot SEN0189 dan MQTT Cloud Server,” in Seminar Nasional Teknologi Fakultas Teknik UMJ, Seminar Nasional Sains dan Teknologi, Ed., Jakarta: Universitas Muhammadiyah Jakarta, Oct. 2019, pp. 1–9. Accessed: May 20, 2026. [Online]. Available: https://jurnal.umj.ac.id/index.php/semnastek/article/view/5164/0
[14] I. Sahmi, A. Abdellaoui, T. Mazri, and N. Hmina, “MQTT-PRESENT: Approach to secure internet of things applications using MQTT protocol,” International Journal of Electrical and Computer Engineering (IJECE), vol. 11, no. 5, pp. 4577–4586, Oct. 2021, doi: 10.11591/ijece.v11i5.pp4577-4586.
[15] A. Setia, S. Ariyanto, D. N. Triwibowo, I. A. Ashari, R. Cipta, and S. Haryono, “Implementation and Performance Evaluation of ESP32-Based Multi-Sensor IoT System for Real-Time Environmental Monitoring and Early Warning,” JSAI (Journal Scientific and Applied Informatics), vol. 9, no. 1, pp. 118–125, Jan. 2026, doi: 10.36085/JSAI.V9I1.9861.
[16] R. Dionísio, P. M. B. Torres, K. Il Ko, and M. H. Lee, “MQTT-Based Architecture for Real-Time Data Collection and Anomaly Detection in Smart Livestock Housing,” Sensors 2025, Vol. 25, Page 7186, vol. 25, no. 23, pp. 1–14, Nov. 2025, doi: 10.3390/S25237186.
[17] J. Gubbi, R. Buyya, S. Marusic, and M. Palaniswami, “Internet of Things (IoT): A vision, architectural elements, and future directions,” Future Generation Computer Systems, vol. 6, no. 7, pp. 1645–1660, Jun. 2013, doi: 10.1016/J.FUTURE.2013.01.010.
[18] Y. W. Kwon, J. K. Ahn, J. Lee, and C. H. Lee, “Earthquake Early Warning Using Low-Cost MEMS Sensors,” in IEEE International Geoscience and Remote Sensing Symposium, Waikoloa: Institute of Electrical and Electronics Engineers Inc., Sep. 2020, pp. 6635–6637. doi: 10.1109/IGARSS39084.2020.9323438.
[19] S. Kremser and K. Graffi, “Evaluating the ESP32-S3 for Wi-Fi Penetration Testing Through the Development of Deauther32 and HackHeld32,” Sensors 2026, Vol. 26, Page 3287, vol. 26, no. 11, p. 3287, May 2026, doi: 10.3390/S26113287.
[20] D. Hercog, T. Lerher, M. Truntič, and O. Težak, “Design and Implementation of ESP32-Based IoT Devices,” Sensors 2023, Vol. 23, Page 6739, vol. 23, no. 15, p. 6739, Jul. 2023, doi: 10.3390/S23156739.
[21] N. Ainarappan, T. Ming Sum, and K. Muthusamy, “Analysis of Continuous Vibration Monitoring on Frequency Domain Using Various Sensors,” in The 3rd Asia Pacific International Conference on Industrial Engineering and Operations Management, Johor Bahru: IEOM Society, Sep. 2022, pp. 172–190. doi: 10.46254/AP03.20220031.
[22] S. M. Yousif, A. Jamhour, H. A. Hussein, and A. H. Numan, “Development and Evaluation of a Low-Cost Dynamic Motion Platform for Investigating Inertial Measurement Unit Behavior Using the MPU6050 Sensor,” The Eurasia Proceedings of Science, Technology, Engineering and Mathematics, vol. 37, pp. 307–314, Nov. 2025, doi: 10.55549/EPSTEM.1307.