Color sensor not detecting color

can someone explain how my color sensor recognizes the color of my cans? Do I type in the color in the word (“green”) or do I have to type in the color code? I tried both but my sensor doesn not see the cans.

Hi Robin, which system are you working with? Is it a public or a private system you have created? We will need to know which sensor you are using too.

Without knowing that, most probably, the sensor is reading the collision data of the cans, and getting the color from there (string) rather than processing the texture color (this can be made with a camera). If that is the case, it is important for the sensor to work that the cans have this collision data set and the value is something the camera is expecting.

I work with a private system and i have tried both color sensor that are in the public components

and i want to detect the color of the cans from product entry

Hi Robin,
did you check in pur academy the chapter where we describe how color sensors can be created?
You have it here:
Build a Color sensor
It explains how the collission data can be used for that.
If you want to play with the cans, you will need to clone and modify them so the color sensor can be used.

yes i had to add collision data to the cans. Thank you!