How does a gas pump know to stop before your tank overflows, with no electronics in the nozzle at all? A trick of moving air, a little rubber diaphragm and a spring-loaded latch. This cutaway needs JavaScript.