Color sensor is a sensor that is used to detect the color of an object.
This color sensor as actually a photo electric sensor that has a special character combination of color red (R) green (G) and blue (B). For that reason, color sensor often called the RGB color sensor.