- assuming it's the same liquid over and over again (for the same system, or you would have serious cleaning issues): calibrate your water flow sensor for the liquid in question.
- weigh the container the liquid is poured in, and use that. You know the liquid, so you know the density, so the weight gives you the volume.