There could be a number of reasons why your fire alarm is beeping every 20 seconds. It may need new batteries, or the sensor may be dirty. The alarm may also be triggered by cooking fumes or steam. If the alarm continues to sound after you have checked the battery and cleaned the sensor, it may need to be replaced.