Looking for a way to measure the fuel level for an RC car tank ! help !

Pick the pulse off of pin 3 before the RC smoothing network, the pulse width after subtracting the empty tank width should be a linear function of how full the tank is.

The tough part is vibration foaming up the fuel.