EEPROM reading values problem[SOLVED]!!

 int sensorValue = 0;        // value read from the pot

      sensorValue = analogRead(analogInPin);                   
      
      //write these 10 values to eeprom
      EEPROM.write(cData, sensorValue);

The EEPROM.write() function write ONE byte to the EEPROM. You are passing it an int. Do you really want to guess which half of the int it wrote?