Get out of the frame of camera, wait until start variable = true then get back in the camera frame and it should work. this is just a concept, not polished or super fast.
@griffpatch for the color sensor