Mount smoke detectors in the middle of the ceiling, if possible. If not, mount detectors on the wall, at least three feet from a corner and 4 to 6 inches from the ceiling. Keep detectors away from fans or air ducts.
Avoid placing the detector too close to kitchen stoves and bathroom showers. Mount basement detectors at the bottom of the basement stairwell.