A sensor device to detect a level of carbon dioxide in a body of gas includes one or more lead selenide detectors as infrared sensing elements. The sensor device operates without temperature regulation required by conventional lead selenide-based sensors, and instead measurements of the sensor device are compensated for a temperature measured by a thermal sensor.