If you have a smoke detector beeping every 30 seconds or so, here are some tips to help you stop it from chirping or beeping.
You will, of course, want to make sure there's no fire. That's the most important step before you try to silence it.
The main trick that works is holding down the test button for a few seconds. If that doesn't work, you'll need to discharge it.