Write / read from EEPROM not output correct values

What is the range of your analog input signal?

What is the voltage (1.1V Internal, External AREF or 5V) for the VREF-point of the ADC?

Are you using Arduino NANO/UNO/MEGA/DUE?

These information are needed at our ends to do some experiments for helping you with some results.