Issue with Light and color sensor programming with Scratch

#1

Hi, I have both distance and light/color sensors connected through I2c on gopigo 3. I am using scratch for robots and I have 2 questions:

  1. The light sensor value is always constant. I am using “broadcast light” and then “say light sensor value” but it always give me a value of 55.0. When I tried to use the Python module, it seems to work, but not with scratch.
  2. What are the scratch commands to detect the RGB colors? I can’t seem to find info on this.

Thanks!