It is recommended to replace the batteries in your smoke detector at least once a year. However, if the detector starts blinking a red light, indicating a low battery, it should be replaced immediately.