If changing the batteries doesn’t stop the beeping, the smoke alarm might be malfunctioning. Attempt cleaning it thoroughly and removing any debris that may be interfering. If problems persist, consider replacing the unit.
Explore this link for detailed steps to address smoke alarm malfunctions.