Function to make arduino sample a sensor every 20 min

There is a timer library somewhere.I have test it one time to read a sensor every 5 minutes.There is also another solution using a RTC(real time clock) connected on the arduino to use time with more accuracy.