measures the level of liquid in a container