A sensor that tells carpet from hard floor
The ultrasonic sensor sends sound waves towards the floor and measures the echo: carpet reflects sound differently from parquet or tiles. This tells the robot when it is on a carpet, so it can follow the carpet rules set in the app. If the robot no longer notices carpets, or confuses carpet with hard floor even after the sensor has been cleaned, it is time to replace the module.