Infrared gas detectors work by emitting an infrared beam and measuring the amount of light absorbed by a gas. Different gases absorb light at different wavelengths, allowing an IR detector to identify the type of gas present. https://www.coherentmi.com/blog/common-types-and-features-of-gas-leak-detectors-used-in-the-united-states-gas-detector-technologies-102