A robot has three main (primary) components:
Controller - Used to process data received from sensor, and then send the produced result/information to actuator
Sensor - a.k.a. Input device, is used to receive input data from surrounding ambient environment
Actuators - a.k.a. Output device, is a component of a machine that is responsible for moving/controlling a part, to produce actions