Sensor adaptation for robots by software