Just looking for a pointer in the right direction.
I have a photo transistor connected to an adc pin on an esp32 devboard. It sends a voltage value based on the amount of light it receives. 0-0.5V in the dark and 1.0-3.9V in bright light. For future automations, I’d like to eval these voltage ranges to report “day” or “night”. Is this possible, or do I just hard code these ranges within future automations?