I worked in various dyehouses for over 40 years so pH control is almost second nature to me.
Automatic pH control is extremely complex and has to take into account a number of variables:
-
Total system capacity.
-
Native water hardness.
-
Strength of acid/alkali donors for adjustments.
-
Accurate dosing of donors and time to reach pH equilibrium.
-
A meticulous electrode calibration scheme (For hydroponics a 1 point calibration daily at pH 4.01 should suffice)
-
Electrode contamination, electrodes need to be kept clean, and some are not suitable for continuous immersion.
There are automatic systems available but as always at a price.
https://www.hg-hydroponics.co.uk/ph-ec-dosers--monitors-483-c.asp
I would love to see a node-red solution, small peristaltic pumps are quite cheap too.