Automated Egg Sorting System Using TCS34725 Color Sensor and Arduino Microcontroller
Universitas Sriwijaya Sumatera Selatan
Universitas Sriwijaya Sumatera Selatan
Universitas Sriwijaya Sumatera Selatan
DOI:
https://doi.org/10.56943/jmr.v5i3.924This study presents the design and performance evaluation of a low-cost automated egg sorting system utilizing a TCS34725 color sensor and Arduino Uno microcontroller for small-scale poultry operations. The system classifies chicken and duck eggs based on real-time RGB value measurements integrated with servo motor actuators and conveyor mechanisms for automated separation. Experimental testing was conducted on 12 samples comprising 6 chicken eggs and 6 duck eggs under variable ambient lighting conditions. The TCS34725 sensor successfully differentiated eggshell colors based on RGB value variations, with chicken eggs exhibiting higher values due to lighter coloration compared to darker duck eggs. System performance achieved classification accuracy ranging from 90% to 95%, with a mean sorting time of 4 to 8 seconds per egg and an operational cost of approximately Rp2–3 per egg. Primary classification errors were attributed to misaligned egg positioning and ambient lighting variations. Despite these limitations, the system demonstrated reliable automated operation suitable for resource-constrained agricultural contexts. The findings validate the feasibility of employing low-cost RGB sensors as viable alternatives to expensive industrial vision systems for species-based egg classification. This research contributes practical insights for implementing affordable automation technologies in small to medium-scale poultry farms, supporting the broader adoption of smart farming practices in developing agricultural economies.
Keywords: Arduino Microcontroller Egg Sorting Automation Poultry Technology Smart Farming TCS34725 Sensor
Alikhanov, J., M. Penchev, S., D. Georgieva, T., Moldazhanov, A., Kulmakhambetova, A., Shynybay, Z., Stefanov, E., & Daskalov, P. I. (2019). Design and Performance of an Automatic Egg Sorting System Based on Computer Vision. TEM Journal, 8(4), 1319–1325. https://doi.org/10.18421/TEM84-31
Amfo, B., Kwasi Bannor, R., Oparebea Boateng, A., & Oppong-Kyeremeh, H. (2024). Consumer satisfaction and preferences for enhanced chicken egg attributes in Ghana: an application of extended theory of reasoned action and means-end theory. Cogent Food & Agriculture, 10(1). https://doi.org/10.1080/23311932.2024.2340156
Chang, C.-L., Xie, B.-X., & Wang, C.-H. (2020). Visual Guidance and Egg Collection Scheme for a Smart Poultry Robot for Free-Range Farms. Sensors, 20(22), 6624. https://doi.org/10.3390/s20226624
Cheng, X., & Ning, Z. (2023). Research progress on bird eggshell quality defects: a review. Poultry Science, 102(1), 102283. https://doi.org/10.1016/j.psj.2022.102283
Costa, F., Frecassetti, S., Rossini, M., & Portioli-Staudacher, A. (2023). Industry 4.0 digital technologies enhancing sustainability: Applications and barriers from the agricultural industry in an emerging economy. Journal of Cleaner Production, 408, 137208. https://doi.org/10.1016/j.jclepro.2023.137208
Delgado, O. D. V., Sandoval, M. F. P., & Marulanda, J. F. F. (2014). Diseño y construcción de una estación de clasificación automática con visión de máquina. TecnoLógicas, 17(32), 97–109.
Deng, X., Wang, Q., Chen, H., & Xie, H. (2010). Eggshell crack detection using a wavelet-based support vector machine. Computers and Electronics in Agriculture, 70(1), 135–143. https://doi.org/10.1016/j.compag.2009.09.016
FAOSTAT. (2025). Food and agriculture data. https://www.fao.org/faostat/en/#home
Gautron, J., Dombre, C., Nau, F., Feidt, C., & Guillier, L. (2022). Review: Production factors affecting the quality of chicken table eggs and egg products in Europe. Animal, 16, 100425. https://doi.org/10.1016/j.animal.2021.100425
Hodges, K. E., Mortimer, N. T., Vrailas-Mortimer, A. D., Sakaluk, S. K., & Thompson, C. F. (2020). Connecting the dots: avian eggshell pigmentation, female condition and paternal provisioning effort. Biological Journal of the Linnean Society. Linnean Society of London, 130(1), 114–127. https://doi.org/10.1093/biolinnean/blaa002
Idrus, S., Nizam, N. Z., Liew, Y. S., Kamarudin, N., & Bakri, M. H. (2023). Consumers’ Preferences for Egg Attributes with Tendency Purchase Organic Eggs and Willingness to Pay for the Preferences within Central Region and Southern Region of Malaysia. International Journal of Professional Business Review, 8(7), e02070. https://doi.org/10.26668/businessreview/2023.v8i7.2070
Javaid, M., Haleem, A., Singh, R. P., & Suman, R. (2022). Enhancing smart farming through the applications of Agriculture 4.0 technologies. International Journal of Intelligent Networks, 3, 150–164. https://doi.org/10.1016/j.ijin.2022.09.004
Keresteš, O., & Pohanka, M. (2024). A colour sensor integrated into a microcontroller platform as a reliable tool for measuring pH changes in biochemistry applications. Analytical Methods, 16(38), 6487–6493. https://doi.org/10.1039/D4AY00637B
Krishna, K. R. (2025). Design and Implementation of a Real-Time Embedded Automation System for Industrial Sorting Applications. International Journal for Research in Applied Science and Engineering Technology, 13(7), 2831–2834. https://doi.org/10.22214/ijraset.2025.73470
Kumar, M., Dahiya, S. P., Ratwan, P., Sheoran, N., Kumar, S., & Kumar, N. (2022). Assessment of egg quality and biochemical parameters of Aseel and Kadaknath indigenous chicken breeds of India under backyard poultry farming. Poultry Science, 101(2), 101589. https://doi.org/10.1016/j.psj.2021.101589
Lu, M.-Y., Xu, L., Qi, G.-H., Zhang, H.-J., Qiu, K., Wang, J., & Wu, S.-G. (2021). Mechanisms associated with the depigmentation of brown eggshells: a review. Poultry Science, 100(8), 101273. https://doi.org/10.1016/j.psj.2021.101273
Nasiri, A., Omid, M., & Taheri-Garavand, A. (2020). An automatic sorting system for unwashed eggs using deep learning. Journal of Food Engineering, 283, 110036. https://doi.org/10.1016/j.jfoodeng.2020.110036
Pletsch, A. L. B., Stenger, E. A. F., & Sehnem, S. (2025). The potential of Industry 4.0 technologies in transforming agricultural and livestock practices: a systematic review. International Journal of Pervasive Computing and Communications, 21(2), 121–155. https://doi.org/10.1108/IJPCC-05-2024-0178
Rahman, M., Hasan, H. A., Emon, Y. A., Hossain, A., Rokon, A. R., & Bhuyan, M. H. (2025). Advanced Color Sorting Conveyor System Using Arduino and TCS3200 Color Sensor for Precise Color Classification. 2025 4th International Conference on Robotics, Electrical and Signal Processing Techniques (ICREST), 476–481. https://doi.org/10.1109/ICREST63960.2025.10914353
Tagarakis, A. C., Kateris, D., Berruto, R., & Bochtis, D. (2021). Low-Cost Wireless Sensing System for Precision Agriculture Applications in Orchards. Applied Sciences, 11(13), 5858. https://doi.org/10.3390/app11135858
Wang, H., Ge, Y., Zhang, L., Wei, Y., Li, Q., Zhang, X., & Pan, Y. (2023). The pigments in eggshell with different colour and the pigment regulatory gene expression in corresponding chicken’s shell gland. Animal, 17(5), 100776. https://doi.org/10.1016/j.animal.2023.100776
Yang, X., Bist, R. B., Subedi, S., & Chai, L. (2023). A Computer Vision-Based Automatic System for Egg Grading and Defect Detection. Animals, 13(14), 2354. https://doi.org/10.3390/ani13142354
Yuliza, M., Herizon, Wirda, F., Ardila, P., & Rahmat. (2025). MICROCONTROLLER-BASED LINE FOLLOWER ROBOT FOR AUTOMATED AGRICULTURAL GOODS TRANSPORTATION SYSTEM. Journal of Multidisciplinary Research, 4(4), 86–109. https://doi.org/10.56943/jmr.v4i4.902