Wemos D1 Mini and TSL2561 Luminosity Sensor - RTurala/Sonoff-Tasmota GitHub Wiki

TSL2561 Luminosity Sensor (I2C)

The TSL2561 luminosity sensor is an advanced digital light sensor, ideal for use in a wide range of light situations. See TSL2561 luminosity sensor for more information.

Note: before the TSL2561 can be used with Tasmota, make sure it's enabled. To enable it, remove the forward slashes before this line before you compile and upload tasmota to your Wemos device.

#define USE_TSL2561   // Add I2C code for TSL2561 sensor using library Joba_Tsl2561 (+2k3 code)

Connecting the TSL2561 to a Wemos Mini D1

Wemos TSL2561
GND GND
3.3V VCC
D2 (gpio04) SDA
D1 (gpio05) SCL

Tasmota Configuration

In the Configuration -> Configure Module page, select the following:

  1. Module Type : 18 Generic
  2. D2 GPIO04 : 06 I2C SDA
  3. D1 GPIO05 : 05 I2C SCL

Tasmota Main

After reboot of the device the displays the TSL2561 Illuminance.