mainloop:
Gosub gettime ' Read the time from the RTC

IF (RTCHour=$00) and (RTCMin=$01) Then
Gosub Light_On ' Light on
ENDIF

...