Inside your gas tank, there's a continuously variable float sensor. New they're spendy, but from a junk yard - cheap!

They should read very easily using A/D, since they're nothing more than a volume control (potentiometer) with an arm on it. Speaking of that, you could make your own using a volume control, a piece of stiff wire, and something that floats.

regards,