system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How does the fuel gauge work in a car?
gpt
Go to your toilet and lift the lid off of the water holder. Flush the toilet. See that little floaty thingy? Thats what in your fuel tank. The car takes a measurement of how high that float it floating (by using electronics it can measure how far on a stick that floater has floated up). Take a volume measurement with the float being the heigh and you get how much fuel you have.