Our color sensor (rev) takes a bunch of readings of the jewels until it gets three of a color in a row. We also have stuff to show what the color sensor detects. In our practice field, it either detects correctly the first 3 times or doesn't detect any color at all, therefore causing us not to get a jewel. This was very common in our pit, but in our competition it worked most of the time