Using EEPROM Anything in loop()
The proper syntax for referring to a struct member is [structName].[memberName]. Changing lastThing in lines 8 &amp; 13 to savedValues.lastThing fixes the "undeclared" error.