Reading analog values from a light sensor
Posted: Tue Jun 29, 2021 4:25 pm
Hello!
I have a light sensor, TEMT6000, and I want to read its values and convert them in lux, because the sensor measures illuminance.
Circuit of the sensor:
I'm a bit confuse on how I should set up my ADC pin ( using the adc.h library ) to read the values, and also how to convert them to lux. If anyone has any idea about this, I will be grateful.
PS: I have a ESP32 Lolin. I'm using the ADC1 because I also use WiFi and I know that ADC2 has problems when Wifi is in use.
I have a light sensor, TEMT6000, and I want to read its values and convert them in lux, because the sensor measures illuminance.
Circuit of the sensor:
I'm a bit confuse on how I should set up my ADC pin ( using the adc.h library ) to read the values, and also how to convert them to lux. If anyone has any idea about this, I will be grateful.
PS: I have a ESP32 Lolin. I'm using the ADC1 because I also use WiFi and I know that ADC2 has problems when Wifi is in use.