A sensor can tell whether or not the air is toxic.