Detecting exposure to CO2