A smoke alarm should flash red when the batteries need to be replaced, or when it detects smoke or carbon monoxide.