No float, no sensor, no electronics. A tiny hole at the spout tip breathes air. Cover it with fuel and the nozzle chokes itself shut.