Why is the color sensor not working?

The color sensor of my summer school is showing the correct hue when I check the brain, but it never detects color when functioning. Also, it flashes when first turns on and there is no extra sensors

Share some code and photos, I think I had a similar issue before? Do note that it can be sensitive to lighting.

Have you tried the “optical sensing” example in VexCode?