I have no idea why you are wanting to do this as this is the first thing I have read but if I wanted to measure the level of liquid in a vessel one of the easier ways is to use an ultrasonic TX/RX above, pointing down.