This paper presents an innovative method for detecting and quantifying carbon dioxide CO2 using a Single Pixel Camera (SPC) operating in the Mid-Wave Infrared (MWIR) spectral range. Instead of a conventional detector array, the system employs a single HgCdTe photodetector coupled with a rotating Spatial Light Modulator (SLM) encoded with cyclic Hadamard masks. Image reconstruction is performed mathematically based on sequential measurements which enable both image quality improvement and interpolation with a reduced number of samples. The developed system allows for the generation of two-dimensional images of infrared radiation distribution attenuated by the presence of CO2, enabling remote estimation of its concentration. Laboratory experiments were conducted using a controlled gas chamber and a reference photoacoustic sensor. The results confirm the system’s capability to accurately measure CO2 concentrations in the range 1,000–32,500 ppm, with an expanded uncertainty not exceeding 6 %. The proposed technology combines low detector cost with high sensitivity and spatial imaging capabilities. It shows promising potential for applications in environmental monitoring, gas leak detection, and compact systems for atmospheric and air quality analysis.