Where should smoke alarms be installed?

You should have one on every level of your home outside sleeping areas.

And one should be installed in every bedroom in your home.