Function to make arduino sample a sensor every 20 min

Or, there is the "Blink Without Delay" example to look at. Instead of turning an LED on or off, you would be reading a sensor.