The answer to 'how to install smoke detector' is to first turn off the power to the area where you will be installing the smoke detector. Locate the electrical box where the detector will be wired, and use a voltage tester to ensure the power is off. Then, follow the manufacturer's instructions to properly mount and wire the smoke detector to the electrical box. Make sure to test the detector after installation to ensure it is working correctly.
It's important to install smoke detectors on every level of your home, including the basement and attic. Smoke detectors should be placed on the ceiling or high on the wall, at least 10 feet from cooking appliances to avoid false alarms. Replace batteries twice a year and test the detectors monthly to ensure they are functioning properly.