Smoke detectors can only do their job properly if they’re installed correctly, both in terms of the method and placement.
Please keep in mind that many states require certain smoke detectors to be wired with battery backups. If your state doesn't have rules about exactly where to put smoke alarms, here's where to start.