Gather Workshops Logo

Using Sensors

Loop Control

Loops
Do you remember if/else/forever loops?
We will need them for this chapter!

Operators

Operators
Do you remember operators?
They are used to perform comparisons. Eg: 4 < 5

Reading Temperature

Example
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.

Thumbs Up!

Using Sensors: Completed

Now lets move on to the next chapter.
Take me to the next chapter!

Loading...