One quick suggestion is to turn the switch off, then back on. That may resolve it. Otherwise, review the instructions that came with your smoke detector. It should be online under the brand and model number. The life span of a smoke detector is two to five years, so it may already need replacing.