The types of robots are different they have different type of techniques and usage.And like robots robots have sensors for example robots can have light sensor,contact sensor,etc but the sensors are used in some sort of usage.The robots use these sensors by how these sensors can detect sound and also knows when there's an object or a wall in its path the robot goes the opposite way to where there's no object in the robot's way.