The IR method of measuring gas concentration is based on the absorption of IR radiation at certain wavelengths as the…