How does a Fuel Gauge Work?

A fuel gauge works by a float being inside of the tank with wires connected to it, those wires run into the dash to the gauge. Depending were the fuel is in the tank and the float is will show up on the gauge to tell you how much fuel you have.