If the air would interfere with measurements, the chamber that houses the energy source is filled with a gas that has no detectable concentration of the gas being measured.
The chamber is filled with a gas. This gas has no detectable concentration of the gas. This gas is being measured. This chamber houses the energy source. The air would interfere with measurements.