Robot that searches for lights I use Lego Mindstorms NXT 2.0. I want to schedule my robot to move to where there is light αnd then when it finds it (a large amount of light, for example 80%) to stop and move another motor for 30 degrees. Then stay still for 10 seconds and after that to search for another light.

Can you help me please?

I use

port B: right motor

port C: left motor

port A: the degrees motor

port 3: a light sensor
In pseudocode:

LoopBlock (forever)
    MoveBlock (B and C motors, 75% power, forward, forever)
    -- unclear here, probably want to head for brighter light
    -- instead, just wait for 80%
    If LightSensorBlock (port 3, greater than, threshold 80%) Then
         MoveBlock (B and C motors, stop)
         WaitForBlock (time, 10 seconds)
    End If
End Loop