Sensor maintenance