UKHeliBob:
Did you also correct your erroneous attempt to write an int into a location that can only hold a byte ?
I did that, I mapped the value from the sensor only from 0 - 255 which this line of code outputValue = map(sensorValue, 0, 1023, 0, 255); so it could be send over the EEPROM.write function. What that basicly did is it divided the values by 4 so it could be mappen in only one byte. Is this the good way or do you suggest an other way?