CO2 is known to absorb infrared radiation, and that is the principle on which capnographs usually work. The exhaled air passes a beam of infrared light. If CO2 is present, it will absorb the infrared radiation which will lead to a reduction in the amount of light that reaches the infrared detector. This allows the machine to determine the amount of CO2 that is present in the air.