Early miners used to carry canaries into coal mines because the birds were sensitive to certain gasses. Modern chemical analysis does the same thing, though much more powerfully. For instance, infrared spectroscopy can detect even trace amounts of a wide range of chemicals, including toxic components of hazardous waste or chemical weapons, because many chemicals absorb light in the mid-infrared band.