Check out how the DS3231 Alarm functions work.
See this article: Build Programmable Time-based Switches Using a Real Time Clock
The code can be downloaded Here
Check out how the DS3231 Alarm functions work.
See this article: Build Programmable Time-based Switches Using a Real Time Clock
The code can be downloaded Here