Measuring flow rate of a milking machine

sasithnuwantha:
I want to create a flow meter for a milking machine which works on vaccume.I tried hall effecct flow meter senaor, but due to vaccum effect the senaor rotatea even when without milk flow. Alao i doubt that full flow is needed to get the correct results .

Can please anyone suggest me a good method??

I have seen ultrasonic flow meters that can be mounted outside of the flow-pipeline.
I'm not sure if they work with milk but they do with water.
They are not cheap but also not too expensive.