can sensor or probe question

friends, I am starting a project to build a beverage can filling machine. I know I am going to need a ton of help along the way - and hope I can find it here! I have searched the forums-- and see some similar threads, but none that are a hand/glove fit.

beverage cans are typically filled with carbonated beverage, and quality is checked by the total weight of the can. I know it is temping to see if we can do a weighted sensor, but I worry about liquid corrosion on the sensor and the framework needed in consideration of the overall project.

The norm is usually some type of foam or liquid sensor. foam often pours over the can before the liquid is shut off. The liquid level is the key. the liquid is often 32f. not sure what the foam would read temperature wise or if a sensor could be set to only detect that of the liquid. ideally, a sensor that detects liquid is ideal.

once the detection is made, it would shut off the fill valve. note that the liquids are corrosive, so a ss probe is best.

can you inform me of what sensors might be available as a starting point?

What liquid? What weight/volume? How fast? How accurate? Cost? Size for sensor? Size of container?
Just a few details which are all important for the sensor choice.

Is this for an industrial engineering class? Surely you know about using levers to keep the product and the sensor away from each other and still correctly weigh the product! And besides, the CO2 is added just before the can is capped. Do you also have to invent the capping mechanism?

Paul