Carbon monoxide detectors sound an alarm when they sense a certain amount of carbon monoxide in the air over time. Different types of alarms are triggered by different types of sensors. 1  Biomimetic sensor: A gel changes color when it absorbs carbon monoxide, and this color change triggers the alarm.