The feasibility of sensing carbon dioxide with a IR single- beam optical structure is studied, and a novel carbon dioxide gas sensor based on IR absorption is achieved. Applying the Lambert-Beer law and some key techniques such as current stabilization for IR source, using a high-quality IR detector, and data compensation for the influences of ambience temperature and atmosphere total pressure, the sensor can measure carbon dioxide with high precision and efficiency. The math- ematical models for providing temperature and pressure compensation for the sensor are established. Moreover the solutions to the models are proposed. Both the models and the solutions to the models are verified via experiments. The sensor possesses the advantages of small volume, light weight, low power consumption, and high reliability. Therefore it can be used in many associated fields, such as environmental protection, processing control, chemical analysis, medical diagnosis, and space en- vironmental and control systems. © 2000 Society of Photo-Optical Instrumentation Engineers. (S0091-3286(00)01708-6)