Float
A float level sensor is the oldest and most intuitive technology of all. A buoyant ball or hollow cylinder is placed inside the tank and naturally rides on the surface of the liquid. As the liquid level rises and falls, the float rises and falls with it, and the rest of the sensor mechanism translates the float's position into a usable signal.
The simplest implementations use a lever and rod, like an old toilet cistern: the float is on one end of a pivoting arm, and the other end drives a pointer, opens a contact, or rotates the wiper of a potentiometer to produce a voltage. More refined versions use a vertical guide tube with a magnet inside the float and a chain of reed switches along the outside of the tube, so that as the float passes each switch the level reading steps up.
Floats are mechanically simple, need no electrical power for the basic mechanism, and are immune to whether the liquid is conductive or not. The drawbacks are that the float can stick from product build-up over time, can be damaged by turbulent fills, and gives only as fine a resolution as the mechanism allows. They are still a sound choice for cheap, robust, indicative level measurement.