Use a liquid level sensor to build a measuring cup you can read with an Arduino.