I’m using ADS115’s to measure the resistance of PIR motion sensors. To get an accurate reading I have to define the reference voltage as a configuration variable. The challenge is that the voltage fluctuates by 0.1-0.3v. Although this is manageable, I’d like the ability to dynamically set the reference_voltage. I have set up a sensor to capture the reference voltage but can’t find a way to then copy that state to a configuration variable.
I’m doing exactly what you need with a temperature sensor. It exposes a number helper to Home Assistant where I can set the temperature offset dynamically.