Design and Implementation of an IoT-based Automatic Waste Sorting System using ESP-32, Proximity Sensors, and Firebase
DOI:
https://doi.org/10.59934/jaiea.v5i3.2546Keywords:
ESP-32, Firebase, Internet of Things, Smart waste management, Waste sortingAbstract
Waste management remains a significant environmental challenge due to the low level of public awareness in sorting waste according to its type. Improper waste segregation reduces recycling efficiency and increases the amount of waste disposed of in landfills. This study proposes the design and implementation of an Internet of Things (IoT)-based automatic waste sorting system using an ESP32-S microcontroller. The system is capable of classifying waste into three categories, namely metal, organic, and inorganic waste. Waste identification is performed using a combination of photoelectric, inductive proximity, and capacitive proximity sensors, while HC-SR04 ultrasonic sensors are utilized to monitor the capacity of each waste compartment. The sorting mechanism is controlled by MG996R servo motors, and the collected data are transmitted to Firebase Realtime Database for real-time monitoring through a Kodular-based Android application. The system was developed using the Agile methodology and evaluated through black-box testing. Experimental results show that the proposed system achieved a maximum classification accuracy of 85%. In addition, the ultrasonic sensor demonstrated stable distance measurement performance with an average error below 0.6 cm. The integration of Firebase and Kodular enabled real-time monitoring of waste classification results and bin status. Therefore, the proposed system can improve waste management efficiency and has potential applications in smart waste management for both household and public environments.
Downloads
References
“who_compendium_chapter4.pdf.” Accessed: Jun. 25, 2026. [Online]. Available: https://cdn.who.int/media/docs/default-source/who-compendium-on-health-and-environment/who_compendium_chapter4.pdf
R. Syaljumairi, C. Prabowo, and D. L. Hanum, “Tempat Sampah Pintar Berbasis IoT,” vol. 4, no. 1, 2023.
B. A. Ramadhan, I. Rizianiza, and F. Manta, “Rancang Bangun Tempat Sampah Pemilah Otomatis Berbasis Arduino,” J. Rekayasa Mesin, vol. 17, no. 2, pp. 265–274, Aug. 2022, doi: 10.32497/jrm.v17i2.3283.
M. Ismail, R. K. Abdullah, and S. Abdussamad, “Tempat Sampah Pintar Berbasis Internet of Things (IoT) Dengan Sistem Teknologi Informasi,” Jambura J. Electr. Electron. Eng., vol. 3, no. 1, pp. 7–12, Jan. 2021, doi: 10.37905/jjeee.v3i1.8099.
A. Bahauddin and Munawaroh, “IMPLEMENTASI SISTEM CERDAS PEMILAH SAMPAH LOGAM, ORGANIK DAN ANORGANIK OTOMATIS DENGAN METODE FUZZY SUGENO ORDE NOL BERBASIS INTERNET OF THINGS (STUDI KASUS: BANK SAMPAH KAMPUNG BARU),” J. Res. Publ. Innov., vol. 3, no. 1, pp. 2155–2162, Jan. 2025, Accessed: Jun. 25, 2026. [Online]. Available: https://jurnal.portalpublikasi.id/index.php/JORAPI/article/view/1552
Y. Bahtiar, D. Ariyanto, M. Taufik, and T. Handayani, “Pemilah Organik dengan Sensor Inframerah Terintegerasi Sensor Induktif dan Kapasitif,” Jan. 2019.
A. Wagyana, “Prototipe Modul Praktik untuk Pengembangan Aplikasi Internet of Things (IoT),” Setrum Sist. Kendali-Tenaga-Elektron.-Telekomun.-Komput., vol. 8, no. 2, pp. 238–247, Dec. 2019, Accessed: Jun. 25, 2026. [Online]. Available: https://jurnal.untirta.ac.id/index.php/jis/article/view/6561
“Sensor Proximity.” Accessed: May 17, 2025. [Online]. Available: https://robotics.instiperjogja.ac.id/post/proximitysensor
R. B. Nugraha, Y. Saragih, and L. Nurpulaela, “Implementasi Sensor Proximity Kapasitif Pada Alat Pemberian Pakan Ayam Otomatis,” JE-Unisla, vol. 6, no. 2, pp. 24–28, Sep. 2021, doi: 10.30736/je-unisla.v6i2.692.
E. A. Prastyo, “Pengertian dan Cara Kerja Sensor Ultrasonik HC-SR04,” Arduino Indonesia | Tutorial Lengkap Arduino Bahasa Indonesia. Accessed: Jun. 25, 2025. [Online]. Available: https://www.arduinoindonesia.id/2022/10/pengertian-dan-cara-kerja-sensor-ultrasonik-HC-SR04.html
“MG996R Servo Motor,” Components101. Accessed: Jun. 25, 2026. [Online]. Available: https://components101.com/motors/mg996r-servo-motor-datasheet
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Journal of Artificial Intelligence and Engineering Applications (JAIEA)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.








