I’ve been looking at filters reading the docs over and over but I don’t get it.
On d1-mini, I am reading the ADC from a capacitive moisture sensor.
These are the values I am getting:
wet = 983
Dry = 2339
With Arduino IDE I would do map(sensorVal, 983, 2339, 100, 0)
How can I achieve this with EspHome ?
I curently have: