There are different types of smoke alarms. Some use lithium batteries and last for up to 10 years, but the whole unit needs to be replaced once it expires. Other detectors have interchangeable batteries.
To identify which smoke alarm you have, look at the little light on it. A steady green LED light indicates that your alarm is using AC power (it’s wired to the mains electricity in the home). Battery-operated alarms will have a quick flash every 30–45 seconds.
Tip: If your smoke alarm uses batteries, invest in high-quality, long-lasting batteries. Rechargeable or low-quality batteries may cause smoke detectors to falter.