The Color Sensor is one of the sensors that give your 
robot vision (the Ultrasonic Sensor is the other). The 
Color Sensor actually has three different functions in 
one. The Color Sensor enables your robot to distinguish 
different colors and between light and dark. It can detect 
6 different colors, read the light intensity in a room 
and measure the light intensity of colored surfaces. The 
Color Sensor can also be used as a Color Lamp.
You can use the Color Sensor to sort your LEGO
®
 bricks, or to 
make a robot that will follow a red line or change direction 
when it detects a red spot. You can also use the sensor as a 
color lamp to give your robot extra personality.
To get optimal color detection, the sensor should be held at 
a right-angle  between 0.5 - 1.5 cm to the surface. Incorrect 
color readings can occur if the sensor is held at other angles to 
the surface or if it is used in bright light.
New