Okei, I tried again and I get that print out:
RTC lost power, let's set the time!
2022/3/3 (Thursday) 18:43:53
since midnight 1/1/1970 = 1646333033s = 19054d
now + 7d + 12h + 30m + 6s: 2022/3/11 7:13:59
Temperature: 0.00 C
2022/3/3 (Thursday) 18:43:53
since midnight 1/1/1970 = 1646333033s = 19054d
now + 7d + 12h + 30m + 6s: 2022/3/11 7:13:59
Temperature: 0.00 C
2022/3/3 (Thursday) 18:43:53
since midnight 1/1/1970 = 1646333033s = 19054d
now + 7d + 12h + 30m + 6s: 2022/3/11 7:13:59
Temperature: 0.00 C
2022/3/3 (Thursday) 18:43:53
since midnight 1/1/1970 = 1646333033s = 19054d
now + 7d + 12h + 30m + 6s: 2022/3/11 7:13:59
Temperature: 0.00 C
2022/3/3 (Thursday) 18:43:53
since midnight 1/1/1970 = 1646333033s = 19054d
now + 7d + 12h + 30m + 6s: 2022/3/11 7:13:59
Temperature: 0.00 C
2022/3/3 (Thursday) 18:43:53
since midnight 1/1/1970 = 1646333033s = 19054d
now + 7d + 12h + 30m + 6s: 2022/3/11 7:13:59
Temperature: 0.00 C
If I reload the program I get the same message with the RTC lost power again every time. (I have not disconnected my in between)
The DS3231 is lighting up red, I also changed it to a 5v port on the arduino.
Thanks, I will take a look at this, but is this not only related to battery charging, and not my problem with the clock not counting?