How do I totalize a running total from an analog input. I have a new water pump system with analog input in GPM that I need to accurately totalize the discharge gallons in order to shut off the pump and close the inlet valve once it hits the daily max volume due to regulatory limits. Then reset the totalizer once the 24 hr period is up to restart the pump. Currently we only have the analog input displayed flow rate in GPM.