With the transition from Arduino Uno R3 to ESP32, the old mapping method used to convert input voltage to a more meaningful measurement is no longer valid. This is due to R3 has analog range of 0-1023, whereas ESP32 has range of 0-4095.
Since I am transitioning from a red digital water level sensor to a waterproof ultrasoic module JSN-SR04T to measure water level, this issue will be marked as "Close as not planned"
Context