Question 1

How do you calculate a threshold value?

Put the light sensor over light and dark surfaces, add the two readings you get from the view screen, and calculate the average.

Question 2

Why won't this program work with this robot?

The light sensor fork icon needs a modifier to designate it as port 2.

Question 3

What is a light sensor threshold value?

Avalue that your robot uses to classify sensor readings as either light or dark.