Measuring flow rate of a milking machine

cedarlakeinstruments:
I've been working on a niche type of fluid dispensing machine for a few week and weighing the dispensed fluid was my solution to knowing when to stop.

I was concerned that the type of fluid might cause clogs in a standard paddlewheel flow sensor, so I fabricated an external weigh scale using a 2kg load cell and an HX711 breakout and it works very well. The load cell is very sensitive and since I'm using a Raspberry Pi instead of an Arduino, I had to do some specific data processing to deal with timing interruptions.

The system works well enough that I'm considering marketing my weight platform as an off the shelf product.

I don't see how this relates to the OP wanting to measure milk flow.

You do not address the problem milk creates in ANY mechanism. As you are aware, milk is an animal product and as such contains bacteria. The bacteria love to find spots to grow in any place in any machine. Fresh milk is also hot and when it cools any amount, the fat content begins to precipitate.

All this means the mechanism must be hot and chemically sterilized at least once per day. Any residual material will promote bacteria.

Your process apparently does not have these problems.

Paul