Forward until proximity

Hi there,

Im looking for help with the below code? Line 2 to be more precise. I know the robot will go forward until the proximity sensor < 100. What is the value of the 100?

Im trying to get the robot to move forward until about 10cm before the rings then stop.

All help appreciated.

You should use the distance sensor (ultrasonic) for this purpose, not the proximity sensor in the colour sensor. This is more for detecting if there is an object immediately infront of the colour sensor and not so much for measuring precise distances.