If your smoke detector is beeping or chirping occasionally, it's trying to tell you something. Find new ones on Amazon:
Either it needs a new battery, or it's at end of life and needs to be replaced.
Smoke alarm devices have a specific recommended life, often 10 years. If your detector has reached the recommended limit, it's time to replace all in your house.
Donations appreciated - click in upper right corner "info" circle.