       timeRef = millis();
       dt_now = RTC->now();
       
-      int year = dt_now.year - 2000;
+      int year = dt_now.year() - 2000;
 
 	int valcheck = 32;
 	for (int y=31; y>=26; y--)

	valcheck = valcheck / 2;
	}

	int second = dt_now.second;

	valcheck = 32;
	for (int s=5; s>=0; s--)

	valcheck = valcheck / 2;
	}

	int minute = dt_now.minute();

	valcheck = 32;
	for (int mm=11; mm>=6; mm--)
