Hi, I’ve setup an ESP32 with TEMT6000 connected to ADC0/GPIO36 configured as below, and the reading fluctuates, I’ve tried other pins with the same results, I noticed I get readings even when noting is connected to the pin as well, with nothing connected and viewing the log for a few minutes, it goes from “Got voltage=0.04V” to “Got voltage=0.05V” to “Got voltage=0.00V” to “Got voltage=0.02V” and so on, is this an issue with the ESP32?, or do I need additional configuration / hardware?, with the same sensor on a D1 Mini pin A0 the readings are as expected, any assistance will be greatly appreciated.
- platform: adc
pin: A0 ### tried with GPIO36 same resulth, and ADC0 which Esphome doesn't recognize
name: "Bedroom Lux"
update_interval: 30s
unit_of_measurement: lux
filters:
- lambda: |-
return (x / 10000.0) * 2000000.0;
@makai I tried setting it to various pins with the same results, trying to figure why there is readings without the sensor.
@tom_l Tried with two different power sources, multi-port charger and laptop, and got the same result, the confusing part is the readings with nothing connected to the pins, I’ll try with another power source and see what the results are.
Readings with sensor and it’s the same without anything connected.