The handler assumes a 10-bit ADC full-scale of 1024 and defaults vref to 5.0 V. On ESP32 Arduino, analogRead() is typically 12-bit by default and the ADC reference/scale is not 5.0 V, and this repo does not appear to call analogReadResolution()/equivalent. This will produce incorrect voltage calculations unless the ADC resolution and reference are configured elsewhere. Consider making full-scale and reference explicit per platform (or deriving from the configured resolution / using an ESP32 API that returns millivolts).
The handler assumes a 10-bit ADC full-scale of 1024 and defaults vref to 5.0 V. On ESP32 Arduino, analogRead() is typically 12-bit by default and the ADC reference/scale is not 5.0 V, and this repo does not appear to call analogReadResolution()/equivalent. This will produce incorrect voltage calculations unless the ADC resolution and reference are configured elsewhere. Consider making full-scale and reference explicit per platform (or deriving from the configured resolution / using an ESP32 API that returns millivolts).