I believe you should check with the local or state building codes.

I would be suprised if smoke detectors are not required in every bedroom and adjacent area(s) if any of the recent building codes have been adopted.

Smoke detectors, CO2 detectors ( as well as many other items ) are not part of the NEC, but if installed, must be wired per the NEC.