Interface the RTC module with the Arduino UNO using the I2C protocol.
Create a user-defined function to read time from the RTC module and print time on the Arduino’s Serial monitor.
Example
Note
Wire.h
<DS1307RTC.h>.