Six smoke alarm checks: monthly tests and ten-year replacement
A smoke alarm helps only if it works. Check placement, manufacture date, monthly tests and replacement time.
Official USFA smoke alarm maintenance guide
Link to official alarm placement, testing and replacement instructions
Open source ↗General U.S. guidance; follow local rules and the manual, and leave wiring to licensed professionals.