Sensor controlled robot