Function to make arduino sample a sensor every 20 min

I only need to write the values to the EEPROM memory.