Several NASA-related papers mention partial-pressure CO2 sensors in use. I found a quick mention in a Wiki page about SCUBA equipment (oxygen sensing in their case) which says
This type of sensor operates by measuring the voltage generated by a
small electro-galvanic fuel cell.
edit Per JRE's comment - the voltage here is generated by the chemical ...