top of page
Advanced Level 2
Lesson 1
All About Sensors
In this lesson we're going to be coding a robot to use color sensors to maneuver through a maze. The color sensors allow the robot to detect different colors and follow color-specific commands.
If you have never coded before, click the buttons for the Beginner or Intermediate level coding lessons to practice!
Step 1: Let's learn more about sensors!
Click the image below to open VEX VR in a new window
We're going to be using the Virtual Reality Vex Robot to use some sensors and complete a challenge!
Next open up the Playground on the top bar, then select the Disk Maze Playground!

Step 2: Try out the Level 1 disk maze challenge outlined in the document below!
Step 3: Run your code for the Level 1 Challenge by clicking the start button to see if your robot can make it through the maze!
Once you have finished, check your code by hovering over this yellow box to see a solution!

Step 4: Now try to change every "Front Eye Sensor" block to a "Down Eye Sensor" block to complete the Level 2 Challenge!
Did your code work perfectly the first time you tried it? Were there times that you had to go through and find the spots that weren't working?
Going through code to find and remove the "bugs" or errors is called debugging.
bottom of page