A color sensor uses a white LED as its light source to emit light and receive reflected light (the ratio of red, green, and blue is unique to each color) determined by the color of the detected object. The color sensor separates the reflected light received into red, green, and blue, and outputs the red, green, and blue data (RGB data) as voltage values using the I2C communication method.For example, in the case of red and yellow detected objects, the red, green, and blue output values from the color sensor are different for red and yellow reflected light by the white LED, allowing differentiation of red and yellow.