Answer
Cameras, depth sensors, and other devices collect data about the environment, which AI models then interpret to build an understanding of what is around the robot.
Real-world example A delivery robot uses its perception system to detect a pedestrian crossing its path and stop safely.