When the dirt sensor lights stays red constantly, dirty sensor eyes or a failed dirt sensor control board could be causing the problem.
Unplug the vacuum cleaner and clean the sensor eyes using a soft, dry cloth. Don't use cleaners or liquids as they can help speed the recoating of the sensor eyes, making it necessary to clean them much sooner than normal.
If the dirt sensor lights stays red constantly after cleaning the sensor eyes, you may need to replace the dirt sensor control board because the board may not be detecting sensor eye dirt signals correctly.