Per M.G.L. Chapter 148, Section 26E, smoke detectors are required in residential structures on each level of habitation and the basement level. Such smoke detectors shall be installed “on the ceiling of each stairway leading to the floor above, near the base of, but not within each stairway and ... outside each separate sleeping area.”