Each module (with the powerbrain as an exception) is assigned a specific color by the powerbrain.
Connecting an arduino-powerbrain (!) via USB cable to a PC activates the colors on all connected modules.
Use these to initialize the objects in your sketches correctly.
E.g. after plugging in the USB cable, a connected Motor lights up a purple LED. You will have to initialize this motor in the sketch with "TBMotor variableMotorName(PURPLE);"
Arduino Library IR Sensor
robotics require autonomous reactions. Your robot will need eyes to see
obstacles or detect an object to grab. The IR Sensor module measures
infrared light to determine the distance to the next object.