Thank you very much!
I have made a list what the robot needs to do:
Step 1: Start the program, by pressing a button on the Lego Mindstorms (done)
Step 2: The robot needs to measure the light intensity (from the four Lego light sensors, which are in 90 degrees of each other) (trying, but stuck)
Step 3: The robot needs to compare the measured values. (trying, but stuck how to compare all the four sensors. I can't find where you can compare four values.)
Step 4: The robot needs to find the highest sensor value. (trying, but stuck how to find the highest value)
Step 5: Drive toward the light source.
Step 6: Keep measuring and compare the measured sensor values.
Step 7: If the new sensor values are higher then the old (highest) sensor value adjust the direction.
If the new sensor values are lower then the old (highest) sensor value keep driving the same direction.
Step 8: Stop the program, by pressing a button on the Lego Mindstorms (done)
I'm trying to achieve that. Still in progress.
Thanks,
Wildman