How does a gas pump know to shut itself off? – The Straight Dope

https://www.straightdope.com/21341412/how-does-a-gas-pump-know-to-shut-itself-off