Summary
In this chapter, you were introduced to sensor-based programming, and you learned about the functioning of the LEGO BOOST color sensor. It senses six distinct colors. You performed coding exercises to make your robot perform various actions based on the color that it detects. One important thing learned in this chapter is that we never use rotations or second-based programming when we want our actions to be decided based on inputs received from the sensor. In the next chapter, you will be building a line-following robot that can follow the edges of a black line. This robot will look like a humanoid and its programming will be logical. You will learn about the importance of line-following robots in warehouses. You will also solve tasks involving line following.