Eeprom is useful if your device powers down and up and you want continuity in your logic.

Store your variable to eeprom before shutting down,then read it after power up and return it in a variable.

Robert