No problem sir. I’m not sure how much of a program wiz you are but i know @Scientific710 had some schooling with PLC programming. Y’all both are in OR.
The technical name of the subject you’re looking at is called Instrumentation. It’s been a while but they have different ways to program. I think the name is called control loop feedback
To have an effective automated system you will need exact sensor locations. Remember this.
One last thing for the love of the process gods stop using a ball valve to regulate flow. They are designed for Close/Open. To throttle use butterfly valves or globe valves. Needle valves can be used in certain situations such as low pressure.