For this project, you will need a regular LED of any color, and a TSL2561 light sensor, available on Adafruit (https://www.adafruit.com/product/439)Â and through many other providers.
The code for this chapter is available at https://github.com/PacktPublishing/Hands-On-Robotics-with-JavaScript/tree/master/Chapter05.