Trying out the TSL2561
Since the TSL2561 sensor is an advanced digital sensor, we will need to communicate with over I2C, since we can't read it as an analog sensor. Unlike other simpler light sensors, the TSL2561 chip measures both infrared and visible light to better approximate the response of our own eyes. As many of the components used in this book, the TSL2561 breakout board we will be using is from Adafruit, which also supplies a library for this sensor. This makes communicating with the sensor a bit easier. You can find the library on their GitHub: https://github.com/adafruit/Adafruit_TSL2561.
Download and install the library into you Arduino library folder. If you don't remember how to do this or if it is your first time installing a library, please take a look at Chapter 2, Working with Sensors where we explained the processes.
Once you have your library installed, its time to connect the TSL2561 sensor to you FLORA board. For testing the TSL2561 sensor, we will use alligator...