earlydean said it correctly.
The building codes have for a long time required smoke ALARMS. They were first required in hallways leading from sleeping rooms, and now in every room used for sleeping.
The carbon monoxide alarm requirement is creeping in to the "code" environment now.
We (Oxnard Fire Dept) in Oxnard, CA require CO alarms on each floor of any new residence. We do it as a "condition of approval" for any new residential development. We hope to have it codified as a local amendment to the CA building code, soon. Next, the IBC and IRC, and then the world.......
Why?
Here's an example from the year 2000:
Grandpa is making soup in a big pot on an old stove. The big pot blocks air from reaching the burner. CO happens. Grandpa and other family members sit down, pass out. One family member staggers outside and falls face down in the front yard. A neighbor see him and calls 911. Every one is rescued. Another few minutes and every one inside would have been dead.
We want CO alarms!!
We want them interconnected so noise happens throughout the residence.