This may help.
When your gas gauge reads empty, your tank is filled with air instead of fuel. As you add fuel, the air must move out of the tank to make way for the gas. Next time you fill your car at the gas station, take a look at the pump nozzle. You will find a hole about a half inch from the end of the nozzle. This hole is connected to a small pipe that travels through the nozzle to the handle.
When you fill your gas tank, some of the displaced air flows through the hole in the nozzle into the pipe. When the tank is full, the hole will be below the gasoline level and no air will pass through the pipe. A mechanical switch inside the nozzle detects when the flow of air stops and shuts off the gas.
You may have noticed that, after the pump shuts off, you can get more gas in your tank by pulling the nozzle out of the tank a bit. This is because you’re moving the position of the hole relative to the gas level and allowing the mechanical switch to reopen.
Does this help at all, LOL