TSL2561 Sensor Features
This sensor is capable of direct I2C communication and is able to conduct specific light ranges from 0.1 – 40k+ Lux easily.
You can download the datasheet of this module here.
TSL2561 Sensor Pinout
This module has 2 pins:
- VCC: Module power supply – 5V
- GND: Ground
- SLC: I2C clock
- SDA: I2C data
- INT: Adjusting I2C address
You can see pinout of this module in the image below.
Interfacing TSL2561 Sensor with Arduino
Step 1: Circuit
Connect the module to the Arduino according to the following image.
Step 2: Code
Install following library on your Arduino board.
Upload the following code to your Arduino.
/* modified on Sep 14, 2020 Modified by MohammedDamirchi from https://github.com/adafruit/TSL2561-Arduino-Library.git