Summary
In this chapter, you worked further with the color sensor and wrote programs for complex tasks with multiple decisions involved. You used an if-then block for the first time. You also wrote programs for different actions of the robot for different colors detected. A pulley mechanism was used to open and close the doors. You understood the practical application of automatic doors in this chapter. To further instill these concepts, you will be building and coding a candy dispenser in the next chapter that will dispense candy depending on the color-coded currency detected.