Wemos D1 Mini and TSL2561 Luminosity Sensor - FengtianGu/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.

Note: To use the TSL2561 with Tasmota you have to enable sensors (e.g., use sonoff-sensors.bin).




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 the device reboots, the home page will display the TSL2561 Illuminance.

Note: If you wish to eliminate Analog0 from the home page and A0 from the telemetry messages, create a template for your device and uncheck the ADC0 input checkbox in the template setup.

⚠️ **GitHub.com Fallback** ⚠️