Use of color sensor device with resazurin test for rapid screening of raw milk with low microbiological quality

Main Article Content

Chayapon Thanasirikul
Atit Pathumwan
David Lipsky
Sakunnee Bovonsombut
Pisith Singjai
Ekkarat Boonchieng
Thararat Chitov


The microbiological quality of raw milk is important for the dairy industry because it can directly affect the quality and shelf life of dairy products. To evaluate the microbiological quality of raw milk, the resazurin test, a rapid dye reduction assay, was commonly used. However, resazurin test results are usually read by the eye, which can cause errors in judging the milk quality. In this study, a color sensor device based on the RGB system for measuring the color resulting from the resazurin test was developed. The device was embedded with VEML6040, an RGB-based color sensor, and operated using an Arduino microcontroller. The results showed that there is a reverse correlation between the percentages of the blue color and the number of microorganisms, both with the resazurin test performed in test tubes and in reduced-scale microtubes. A linear regression line with an R2 of approximately 0.85 was obtained from the plot between the percentages of blue values from the microtube resazurin test and the corresponding numbers of microorganisms. This suggests that using the blue values to classify milk according to its microbiological quality is possible. With the present dataset, the blue value of 25% could be used as a cut-off value to separate raw milk with microbial loads of 7 log cfu/ml or higher from milk with lower microbial loads.

Article Details

How to Cite
Thanasirikul, C., Pathumwan, A. ., Lipsky, D., Bovonsombut, S. ., Singjai, P. ., Boonchieng, E. ., & Chitov, T. . (2023). Use of color sensor device with resazurin test for rapid screening of raw milk with low microbiological quality. Journal of Science and Agricultural Technology, 4(1), 1–7.
Research Article


Adamu, A.A. and Shehu, A. 2018. Development of an automatic tomato sorting machine based on color sensor. International Journal of Recent Engineering Research and Development. 3: 1–7.

Al-shamary, A.H.A and Abdalali, N.I. 2011. Detection of microbial load in imported UHT milk in Baghdad markets. Journal of Veterinary Science. 4(2): 105–106.

Barbano, D.M., Ma, Y., and Santos, M.V. 2006. Influence of raw milk quality on fluid milk shelf life. Journal of dairy science. 89: E15–E19.

Braide, W., Awiya, H., Akien-Ali, I.J., Lugbe, P.B., Oranusi, U.S., and Ayebabohoa, M. 2015. Bacteriological examination of fresh cow milk and fura de nunu using rapid dye reduction test. Pyrex Journal of Microbiology and Biotechnology Research. 1(3): 28–37.

De Silva, S.A.S.D, Kanugalab, K.A.N.P, and Weerakkody, N.S. 2016. Microbiological quality of raw milk and effect on quality by implementing good management practices. Procedia Food Science. 6: 92–96.

Duncan, S.E., Yaun, B.R., and Bruhn, S.J. 2016. Microbiological methods for dairy products, In Marshall, R.T. (ed.) Standard methods for the examination of dairy products. American Public Health Association, Washington D.C.

Elmoslemany, A., Keefe, G.P., and Dingwell, R.T. 2009. Microbiological quality of bulk tank raw milk in Prince Edward Island dairy herds. Journal of Dairy Science. 92(9): 4239–48.

Harrigan, W.F. 1998. Laboratory Methods in Food Microbiology. Academic Press. London.

Ibanez, D., Bote, D.I., Junquera, A.P., García, M.B.G., Santos, D.H., and Bolado, P.F. 2019. Raman and fluorescence spectroelectrochemical monitoring of resazurin-resorufin fluorogenic system. Dyes and Pigments. 172: 1–9.

Mendonça, A.F., Juneja, V.K., and Daraba, A. 2014. Total viable counts: metabolic activity tests. Encyclopedia of Food Microbiology. 2: 610–617.

Minz, P.S. and Saini, C.S. 2021. RGB camera-based image technique for color measurement of flavored milk. Measurement: Food. 4: 100012.

Murphy, S.I., Reichler, S.J., Martin, N, H., Boor, K.J., and Wiedmann, M. 2021. Machine learning and advanced statistical modeling can identify key quality management practices that affect postpasteurization contamination of fluid milk. Journal of Food Protection. 84:1496–1511.

O’Grady, J., Cronin, U., Tierney, J., Piterina, A.V., O’Meara, E., and Wilkinson, M.G. 2020. Chapter one - Gaps in the assortment of rapid assays for microorganisms of interest to the dairy industry. In G.M. Gadd and S. Sariaslani (Eds.) Advances in Applied Microbiology. 113. pp.1–56. Academic Press, Cambridge, Massachusetts, U.S.A.

Quigley, L., McCarthy, R., O’Sullivan, O., Beresford, T.P., Fitzgerald, G.F., Ross, R.P., Stanton, C., and Cotter, P.D. 2013. The microbial content of raw and pasteurized cow milk as determined by molecular approaches. Journal of Dairy Science. 96: 4928–4937.

Rosmini, M.R., Signorini, M.L., Schneider, R., and Bonazza, J.C. 2004. Evaluation of two alternative techniques for counting mesophilic aerobic bacteria in raw milk. Food Control. 15: 39–44.

Thai Agricultural Commodity and Food standard. 2005. Raw milk. National Bureau of Agricultural Commodity and Food Standards Ministry of Agriculture and Cooperatives.