If the smoke detector is more than 10 years old, consider replacing it, as older detectors might become less effective in emergencies. After battery replacement and cleaning, testing the alarm is crucial. If it still chirps, replacing it with a new one is recommended.
Visit this link for further guidance on smoke alarm replacement.