The B5WC color sensor offers reliable detection of changes and differences in color that can contribute to the automation of equipment. This color sensor emits light using a white LED as a light source and receives reflected light determined by the color of the detected object (the ratio of red, green, and blue is unique to each color). The color sensor separates the received reflected light into red, green, and blue, and makes an output of red, green, and blue data (RGB data) using the I2C communication method. For example, when detecting red and yellow objects, the reflected light from the white LED is red and yellow, so the red, green, and blue output values from the color sensor is different, so red and yellow can be distinguished.