Implementation of Smart Onion Counting and Environmental Sensing System with ESP32 MCU

DOI: https://doi.org/10.33650/jeecom.v7i2.13020

Authors (s)


(1)  Titiek Suheta   (Institut Teknologi Adhi Tama Surabaya)  
        Indonesia
(2) * Andy Suryowinoto   (Institut Teknologi Adhi Tama Surabaya)  
        Indonesia
(3)  Novian Patria Uman   (Institut Teknologi Adhi Tama Surabaya)  
        Indonesia
(4)  Choirul Anam   (Institut Teknologi Adhi Tama Surabaya)  
        Indonesia
(*) Corresponding Author

Abstract


The rapid development of embedded system technology in recent decades has had a significant impact, this advancement has contributed to an increase in production capacity with real-time monitoring trough embedded system MCU ESP32. The process of manufacturing onion products, such as fried shallots and garlic. The objective of this research is to develop a low-cost automatic onion counting system that utilizes an embedded system MCU ESP32 with integration of infrared sensors, temperature and humidity sensors to monitor production quality conditions in real-time for small scale Industry. Using the engineering design method, where the TCRT5000 sensor is employed to detect objects based on infrared light interruption, and environmental conditions are measured with the DHT22 sensor to maintain production quality. The internet connection for wireless communication for transmitting data to a mobile device through google firebase. Analysis was performed to evaluate performance such as, data transmission response time, and environmental sensor precision. The results obtained demonstrate that the system attained counting accuracy rates of 98.2% for garlic and 98.55% for shallots. with average data transmission response times of 1.51 seconds and 1.89 seconds, respectively, achieving a success rate of 97.15%. The environmental monitoring sensors demonstrated a high degree of accuracy, with a margin of error of 0.18 °C for temperature and 0.3% for humidity. The results show that this system works effectively in automating onion counting and monitoring, with an accuracy rate of over 98% and a response time of less than 2 seconds, making it suitable for small-scale automated production.


Keywords

Automatic onion counting; low cost; response time; counting accuracy; mobile device



Full Text: PDF



References


M. C. Mudau, L. W. Moshapo, T. M. Monyela, and B. A. Thango, “The Role of Manufacturing Operations in SMEs Performance: A Systematic Review,” Oct. 2024, doi: 10.20944/PREPRINTS202410.0539.V1.

W. Syahindra and M. Murlena, “Computer-Controlled Automation of Coffee Bean Drying and Grinding System menggunakan Sensor Infra Red dan Sensor Fototransistor,” Arcitech: Journal of Computer Science and Artificial Intelligence, vol. 4, no. 1, p. 42, Jun. 2024, doi: 10.29240/ARCITECH.V4I1.10851.

P. Liu, S. Song, W. Liu, Y. Zhao, W. Yan, and G. Zhang, “Design And Experiment Of Grain Harvester Yield Monitoring System Based On Multi-Sensor Fusion ” vol. 75, no. 1, 2025, doi: 10.35633/inmateh-75-65.

Ramadiani, E. W. Setio Budianto, D. Widada, M. Widiastuti, and M. L. Jundillah, “Temperature and humidity control system for broiler chicken coops,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 22, no. 3, pp. 1327–1333, Jun. 2021, doi: 10.11591/IJEECS.V22.I3.PP1327-1333.

E. B. Utomo and N. Izzaturrahmani, “Temperature and Humidity Monitoring System Using Node-Red Based on MQTT Protocol,” Journal of Electrical Engineering and Computer (JEECOM), vol. 7, no. 1, pp. 40–48, Apr. 2025, doi: 10.33650/JEECOM.V7I1.10658.

Moh. A. Anshori, S. Wirayoga, Hadiwiyatno, and S. W. Dali, “Implementation and analysis of hybrid communication for monitoring and control for android-based smart farming,” TEKNOSAINS : Jurnal Sains, Teknologi dan Informatika, vol. 12, no. 1, pp. 145–154, Jan. 2025, doi: 10.37373/TEKNO.V12I1.1335.

G. GAYATHRI et al., “Design, development and evaluation of a manually operated onion grader for Rose onion,” International Journal Of Agricultural Engineering, vol. 9, no. 2, pp. 121–129, Oct. 2016, doi: 10.15740/HAS/IJAE/9.2/121-129.

M. A. F. Gabay et al., “Development of an Arduino-based automated grading onion (Allium cepa, L.) machine for enhanced productivity,” International Journal of Research Studies in Educational Technology, vol. 9, no. 1, May 2025, doi: 10.5861/IJRSET.2025.25017.

T. Fath, H. Haas, and F. Schubert, “Wireless data transmission using visual codes,” Photonics Research, Vol. 2, Issue 5, pp. 150-160, vol. 2, no. 5, pp. 150–160, Oct. 2014, doi: 10.1364/PRJ.2.000150.

A. Suryowinoto, I. Albanna, and M. R. Fachrul A., “Smart Predictive Maintenance for Centrifugal Pumps: How IoT Sensors Reduce Downtime by Monitoring Vibration, Current, and Seal Integrity,” International Journal of Artificial Intelligence & Robotics (IJAIR), vol. 7, no. 1, pp. 18–25, Jul. 2025, doi: 10.25139/IJAIR.V7I1.10398.

A. Suryowinoto et al., “Tracking System Using Gps And Smart Card Authentification Based On ESP 32 Mcu,” BAREKENG: J. Math. & App, vol. 18, no. 2, pp. 751–0758, 2024, doi: 10.30598/barekengvol18iss2pp0751-0758.

R. Usamentiaga, P. Venegas, J. Guerediaga, L. Vega, J. Molleda, and F. G. Bulnes, “Infrared thermography for temperature measurement and non-destructive testing,” Sensors (Switzerland), vol. 14, no. 7, pp. 12305–12348, Jul. 2014, doi: 10.3390/S140712305.

“Optical Sensors | Vishay.” Accessed: Oct. 21, 2025. [Online]. Available: https://www.vishay.com/en/optical-sensors/

C. Prelle, F. Lamarque, and P. Revel, “Reflective optical sensor for long-range and high-resolution displacements,” Sens Actuators A Phys, vol. 127, no. 1, pp. 139–146, Feb. 2006, doi: 10.1016/J.SNA.2005.11.005.

S. Cui and J. Xing, “Research on Calibration Method of Infrared Temperature Measurement System Near Room Temperature Field,” Front Phys, vol. 9, Jan. 2022, doi: 10.3389/FPHY.2021.786443.

“Analog to Digital Converter (ADC) - ESP32 - — ESP-IDF Programming Guide v4.4 documentation.” Accessed: Oct. 21, 2025. [Online]. Available: https://docs.espressif.com/projects/esp-idf/en/v4.4/esp32/api-reference/peripherals/adc.html?utm_source=chatgpt.com

“Real-Time Data Acquisition with ESP32 for IoT Applications Using Open-Source MQTT Brokers .” Accessed: Oct. 21, 2025. [Online]. Available: https://journals.indexcopernicus.com/search/article?articleId=4181158


Dimensions, PlumX, and Google Scholar Metrics

10.33650/jeecom.v7i2.13020


Refbacks

  • There are currently no refbacks.


Copyright (c) 2025 Titiek Suheta, Andy Suryowinoto, Novian Patria Uman, Choirul Anam

 
This work is licensed under a Creative Commons Attribution License (CC BY-SA 4.0)

Journal of Electrical Engineering and Computer (JEECOM)
Published by LP3M Nurul Jadid University, Indonesia, Probolinggo, East Java, Indonesia.