You need industrial level sensors and the water needs to be flowing constantly through them. I built something similar about 15 years ago and tested many sensors. In the end I had to pay about 1000 dollars for ph and ec meters that did the job reliably. To be honest there is nothing new here. This is how big greenhouses have been operating for decades.
In small scale there is more work maintaining the automated setup and calibrating the sensors than it would take to do the measurements and dosing manually.
In small scale there is more work maintaining the automated setup and calibrating the sensors than it would take to do the measurements and dosing manually.