CO Alarm

I am a little off topic but, out of interest, how does a CO detector work?

I can figure out roughly how a smoke detector might work but telling the difference between CO and N2, O2, Ar, and CO2 seems like a neat trick.

Is is a chemical reaction, can the detector be used multiple times?