How do carbon monoxide detectors detect carbon monoxide in the air?



Like are there chemicals in them that cause it to react with carbon monoxide thus causing it to alarm?
Please let me know!!!
sent links if possible