I’m trying to configure an ESPHome device (ESP8266) to sense brightness level in a room using a simple LDR connected to the ADC pin. ESPHome config as follows. What additional configuration is required to scale the input voltage please? Is this done with a filter, or lambda perhaps?
Many thanks in advance
sensor:
# ADC LDR Brightness
- platform: adc
pin: A0
name: "PIR Brightness"
update_interval: 60s
unit_of_measurement: "%"