Using Sensors
Loop Control
Do you remember if/else/forever loops?
We will need them for this chapter!
Operators
Do you remember operators?
They are used to perform comparisons. Eg: 4 < 5
Reading Temperature
What will happen in this program?
You will use a similar statement to this in the next challenge.
Challenge
Program the robot to use a light sensor.
If it drives into a room and it is dark, reverse out of the room.
If room is light keep driving forwards.
Using Sensors: Completed
Now lets move on to the next chapter.
Take me to the next chapter!
In this chapter you’re going to learn how to use light sensors so your robot doesnt go into a dark room.
By the end of the workshop you will have programmed your robot to use a light sensor.