function data = readEeprom(H,addr)

globalVar;
data = 255;

sendServo(H,READ_EEPROM,addr,0,0,0,0,0);
[command,return1,return2] = readServo(H);

if(command == READ_EEPROM && return1 == 0)
    data = return2;
else
    disp('OPERATION FAILED: Read EEPROM');
end