Evaluation of a fuzzy logic–based pH control system: response time and accuracy under simulated fermentation conditions
DOI:
https://doi.org/10.18011/bioeng.2026.v20.1402Keywords:
pH control, fuzzy logic control, biohydrogen fermentation, sensor calibration, dynamic response, Arduino-based systemAbstract
pH is a critical parameter in anaerobic fermentation processes, particularly in biohydrogen production, where microbial activity is highly sensitive to environmental conditions. This study aimed to evaluate the performance of a fuzzy logic–based pH control system using standardized buffer solutions to simulate fermentation conditions. The system was developed using an Arduino Uno R4 WiFi microcontroller integrated with a pH sensor, peristaltic dosing pumps, and a mixing unit. Experiments were conducted at laboratory scale with working volumes of 300 mL under acidic (pH 4.5) and alkaline (pH 8.0) initial conditions, targeting an optimal pH range of 5.5–7.0. The pH sensor calibration showed good repeatability but limited accuracy, with a root mean square error (RMSE) of approximately 1.12 pH units. A systematic error pattern was observed, with overestimation in acidic conditions and underestimation in neutral to alkaline ranges, indicating limitations of the linear calibration model. Despite this, the sensor demonstrated stable and consistent measurements. The fuzzy logic control system successfully regulated pH toward the desired set points under both acidic and alkaline conditions. The system exhibited stable and monotonic responses without oscillation or overshoot, demonstrating robust control performance. However, differences in response dynamics were observed: the system responded faster under alkaline conditions than under acidic conditions, reflecting the nonlinear characteristics of the pH scale and mixing dynamics. Overall, the developed system demonstrates the potential of fuzzy logic control for pH regulation in fermentation processes. However, improvements in sensor calibration and response speed, particularly under acidic conditions, are necessary to enhance system accuracy and efficiency.
Downloads
References
Ahleboot, Z., Khorshidtalab, M., Motahari, P., Mahboudi, R., Arjmand, R., Mokarizadeh, A., & Maleknia, S. (2021). Designing a strategy for pH control to improve CHO cell productivity in bioreactor. Avicenna Journal of Medical Biotechnology, 13(3), 123–130. https://doi.org/10.18502/ajmb.v13i3.6365
Baranwal, J., Barse, B., Gatto, G., Broncová, G., & Kumar, A. (2022). Electrochemical sensors and their applications: A review. Chemosensors, 10(9), 363. https://doi.org/10.3390/chemosensors10090363
Berger, M., Huber, S., Schott, C., & Paul, O. (2019). Half-Blind Calibration for the Efficient Compensation of Parasitic Cross-Sensitivities in Nonlinear Multisensor Systems. IEEE Sensors Journal, 19, 7005–7014. https://doi.org/10.1109/jsen.2019.2913567
Cheng, K. L., & Zhu, D.-M. (2005). On calibration of pH meters. Sensors, 5(4), 209–219. https://doi.org/10.3390/s5040209
de Carvalho, A. P. A., & Conte-Junior, C. A. (2024). Health and bioactive compounds of fermented foods and by-products. Fermentation, 10(1), 13. https://doi.org/10.3390/fermentation10010013
Fratz-Berilla, E., Kohnhorst, C., Trunfio, N., Bush, X., Gyorgypal, A., & Agarabi, C. (2024). Evaluation of single-use optical and electrochemical pH sensors in upstream bioprocessing. Heliyon, 10, e25512. https://doi.org/10.1016/j.heliyon.2024.e25512
García-Depraect, O., Rene, E. R., Gómez-Romero, J., López-López, A., & León-Becerril, E. (2019). Enhanced biohydrogen production from the dark co-fermentation of tequila vinasse and nixtamalization wastewater: Novel insights into ecological regulation by pH. Fuel, 253, 159–166. https://doi.org/10.1016/j.fuel.2019.04.147
Gouveia, A. R., Freitas, E. B., Galinha, C. F., Carvalho, G., Duque, A., & Reis, M. (2017). Dynamic change of pH in acidogenic fermentation of cheese whey towards polyhydroxyalkanoates production: Impact on performance and microbial population. New Biotechnology, 37, 108–116. https://doi.org/10.1016/j.nbt.2016.07.001
Gupta, S., Fernandes, A., Lopes, A., Grasa, L., & Salafranca, J. (2024). Review: Microbes and parameters influencing dark fermentation for hydrogen production. Applied Sciences, 14(23), 10789. https://doi.org/10.3390/app142310789
Hitit, Z. Y., Demirtaş, G., & Akay, B. (2026). Enhancing pH control in a bioreactor through experimental system identification and dynamic analysis. Chemical Industry & Chemical Engineering Quarterly. Advance online publication. https://doi.org/10.2298/CICEQ250610032H
Jamil, A., Ting, T. S., Abidin, Z. Z., Othman, M., Wahab, M. H. A., Abdullah, M. F. L., Homam, M. J., Audah, L. H. M., & Shah, S. M. (2023). Polynomial regression calibration method of total dissolved solids sensor for hydroponic systems. Pertanika Journal of Science & Technology, 31(6). https://doi.org/10.47836/pjst.31.6.08
Mohamed, H., Nava, G., Vanteddu, P., Braghin, F., & Pucci, D. (2023). Nonlinear in-situ calibration of strain-gauge force/torque sensors for humanoid robots. In Proceedings of the 2023 IEEE-RAS 22nd International Conference on Humanoid Robots (Humanoids) (pp. 1–8). https://doi.org/10.1109/humanoids57100.2023.10375227
Moussa, R. N., Moussa, N., & Dionisi, D. (2022). Hydrogen production from biomass and organic waste using dark fermentation: An analysis of literature data on the effect of operating parameters on process performance. Processes, 10(1), 156. https://doi.org/10.3390/pr10010156
Nagarajan, M., Rajasekaran, B., & Venkatachalam, K. (2022). Microbial metabolites in fermented food products and their potential benefits. International Food Research Journal, 29(3), 466–486. https://doi.org/10.47836/ifrj.29.3.01
Rocha, R. G., Marra, M. C., Richter, E. M., & Muñoz, R. A. A. (2026). Anodization treatment of flexible graphite sheet electrodes for Nernstian pH sensing. Talanta, 297, 128677. https://doi.org/10.1016/j.talanta.2025.128677
Sarker, S., Lamb, J. J., Hjelme, D. R., & Lien, K. M. (2019). A review of the role of critical parameters in the design and operation of biogas production plants. Applied Sciences, 9(9), 1915. https://doi.org/10.3390/app9091915
Shylendra, S. P., Lonsdale, W., Wajrak, M., Nur-E-Alam, M., & Alameh, K. (2021). Titanium nitride thin film based low-redox-interference potentiometric pH sensing electrodes. Sensors, 21(1), 42. https://doi.org/10.3390/s21010042
Tarigan, J., & Furqon. (2026). Effect of co-substrate ratio on pH, redox potential, and cumulative gas from pineapple pulp residue and cow manure. IOP Conference Series: Earth and Environmental Science, 1583(1), 012035. https://doi.org/10.1088/1755-1315/1583/1/012035
Trabachini, A., Dias, C. S., Moreira, M. R., Wen, T. C., Caneppele, F., Harada, É., Amorim, M. N., & Miranda, K. O. S. (2024). Automation to improve pig welfare using fuzzy logic. Revista Brasileira de Ciências Agrárias, 19(3), e3532
Zeta, B. M. A., Alam, S. U., Rahman, G. M. A. E. U., & Ahmed, K. I. U. (2025). A low-cost pH sensor for real-time monitoring of aquaculture systems in a multi-layer wireless sensor network. Sensors, 25(9), 2824. https://doi.org/10.3390/s25092824
Zhang, L., Zhao, D., Tang, W., Chen, Y., & Huang, J. (2025). Proton-relaying adsorbates induce non-Nernstian behavior in oxygen reduction. ACS Catalysis, 15, 14191–14206. https://doi.org/10.1021/acscatal.5c01767
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 The Authors

This work is licensed under a Creative Commons Attribution 4.0 International License.
By publishing in this journal, authors agree to the following terms:
a) Authors retain copyright and grant the journal the right of first publication. The work is simultaneously licensed under the Creative Commons Attribution License, which permits sharing and adaptation of the work with appropriate credit to the authors and the journal.
b) Authors may enter into separate, additional agreements for non-exclusive distribution of the published version of the work (e.g., posting to an institutional repository or inclusion in a book), provided that proper credit is given to the original publication in this journal.




