To replace the battery on a smoke detector.
Open the casing of the detector (with a screwdriver if needed) and replace the battery.
Open the battery compartment (with a screwdriver if needed) and replace the battery.