Measuring flow sensor to calculate the volume of water