An alternative method of measuring gas concentration is based on absorption of infrared (IR) radiation at certain wavelengths as it passes…