Measure liquid amount from the pump

That's also where calibration comes in play.
Design a system for water, then there's a good chance you can use it with oil provided it's liquid enough, but of course you have to recalibrate for the new liquid. Then that becomes your oil system, etc.