// event at to 14:45 (for tests) uint8_t DAILY_EVENT_HH = 14; // event start time: hour uint8_t DAILY_EVENT_MM = 45; // event start time: minute DateTime now = rtc.now(); printTime(now); if (now.hour() == DAILY_EVENT_HH && now.minute() == DAILY_EVENT_MM) { Serial.println("It is on scheduled time"); // TODO: write your code" } else { Serial.println("It is NOT on scheduled time"); }