this is more of a mechanical problem. u need a bar of resistive material with a floatable cursor so that u have basically a nice long potentiometer then u can use ohms laws to calculate the level for example u could control the curent in a meter like that of a car fuel gage.