This is actually a very interesting liquid level application. The standard dairy equipment industry fix is the VFD (which as mentioned also solves the conversion to 3 phase problem). The main attraction of the VFD is to match pump speed/milk flow to the incoming stream, so that it's moved as slowly as possible through the water cooled heat exchanger on it's way to the refrigerated storage tank (significant savings thus possible on that refrigeration power bill, plus slower pumping minimizes the churning of the raw milk, which "beats the butterfat out of it" I'm told).
The typical probe is a stainless rod/tube with an external floating magnet donut that slides up and down with the liquid level, closing 2 or 3 reed switches inside the tube, which are simply wired to trigger VFD preset speeds. Turns out the tricky part is choosing those speeds and the accel/decel times to match the inflow, which fluctuates quite a bit as cows come and go to the milking stations. Receiver tanks are generally pretty small so not a lot of room to work with. If the tank overfills (if your VFD speed/accel falls behind) a ball float closes off the vacuum system (that's pulling the milk into that receiver) to keep milk out of the vacuum pump. When that happens, everything shuts down, milk gets spilled, big mess! When you see these in operation, the VFDs are always accelerating and decelerating between setpoints, so you know the setup is not "optimized" though it's certainly better than the full blast on-off cycle that was normal before VFDs. Each system must be tuned for individual pump performance, tank size, inflow over time (some cows give more, some milkers move faster), etc., all goes out the window when the pump gets repaired, impeller maybe changed. Very unsatisfying from the control design perspective - we want something that can be swapped out in the middle of the night with no phone calls!
Per jraef, analog/PID is an attractive option (hadn't seen those magnetorestrictive units before, thanks Jeff). The vacuum environment precludes inexpensive pressure transducers, surface foam defeats inexpensive ultrasonic sensors, other technologies (capacitive, etc.) get progressively more expensive for an application that's very cost averse (dairymen are going broke). I'll price magnetorestrictive now, but interestingly I found that constant level control via PID VFD (when tested without regard for sensor cost) actually wasn't the most effective solution anyway. It did get rid of the tuning headache (could pre-configure with some compromise minimum speed), but on the energy/churning side maintaining a constant level in the receiver effectively removed the tank capacity from the equation. Think about it - when the tank is filling slowly it's OK for the level to rise while the output stays low for improved cooling/churning performance, so best overall efficiency requires taking advantage of the tank storage capacity in a way that constant level evacuation does not. While looking into tuning schemes for variable level PID I experimented with a lot of different things.
I finally came up with a scheme for optimal pump speed under all conditions with no tuning and no exotic electronics required, did some bench testing, had some custom sensors manufactured, have a prototype in service that seems to work very well. There is an "analog" setup on the market (from one of those equipment manufacturers) but I purposely haven't looked at one, hoping my own might be better/simpler/cheaper.
Guess I should stop there, no promoting allowed and anyway I don't have a package ready yet (learning now what else you have to do to actually sell something, and how likely it is to be reverse engineered almost instantly if in fact it has any technical merit). I just had to chime in here on account of this application being sort of a hobby, plus it really is an interesting level control challenge for those who follow this forum . . .