Finally, I found a way to measure Voltage with Arduino or ESP32 with high accuracy using this Voltmeter module which is basically external 16 bits ADC ADS1115 + voltage divider + EPROM for storing calibration data. This module is made by M5Stack so it is easiest to use it with M5Stack development systems. But it will work on any development board. I am planing to use it to monitor my solar panells.