Smoke detectors must be placed on every level, including the basement, of the home. If the attic is a finished living space or someone is sleeping in that room, a smoke detector must be installed.
Carbon Monoxide detectors must be placed within 10 feet of all bedroom doors.
Both are required to pass a housing inspection. Both can be either plug-in or battery operated.