ESP32 I2C and ADC – Light sensor digital and analog

Even the brightness or light values are not really important for a weather station,






I added this information as well in my first ESP32 project. I did it mainly because I could learn how to use the I2C connection and the analog to digital converter of the ESP32.

I had two sensors laying around for this, one is a TSL2561, a sensor that measures light and returns the values in Lux. I have a module that I purchased from Adafruit. The second is a simple LDR, an electronic component that changes it resistance with the amount of light it receives.

The electrical connection for these two sensors are quite simple and explained on the next page.


Leave a Reply

Your email address will not be published. Required fields are marked *

Free Link Directory