There are basically 3 or 4 types of tank indicators.
THE MOST COMMON is basically.. A nail (A metal rod that protudes into the tank, if the rod is underwater then electricity is conducted, Theory is when the tank is empty it is no longer under water. but SLIME on the side of the tank... Conducts as well). I can describe the operation in detail but.. Why bother.
Another type is a pneumatic sensor. (I wish I had a couple) these work better, they test for pressure.
Yet another is a different kind of pressure or weight sensor.
Finally we have See Level sensors.. They work, Much better, not quite sure how but they work (Capacitive coupling? mass sensors? one of those).
The nail. Well when the tank is new, or freshly steam cleaned. .They work.