The working principle of gas analyzers varies depending on the type. Mass spectrometers ionize gas molecules and measure their mass-to-charge ratio. Gas chromatographs separate gases based on their retention time in a column. IR gas analyzers measure the absorption of infrared radiation at specific wavelengths corresponding to different gases. Electrochemical sensors generate a current proportional to the concentration of the target gas.