The DS3231 is an I2C real-time clock (RTC) that is inexpensive and incredibly accurate. The gadget has a battery input and can continue to keep precise time even if the main power supply is cut off. The use of the microelectromechanical systems (MEMS) resonator improves the device's long-term precision and lowers the number of individual parts in a production line. The DS3231 and the well-liked DS3231 RTC share the same footprint. Information about seconds, minutes, hours, days, dates, months, and years is kept up to date by the RTC. For months with fewer than thirty-one days, the date at the conclusion of the month is automatically corrected, taking leap year corrections into account. The AM/PM indicator on the clock allows it to function in either the 12-hour or 24-hour configuration. A 1Hz output and two configurable time-of-day alerts are included. Data and addresses are sent serially over an I2C bidirectional bus. When a power outage occurs, a precise temperature-compensated voltage reference and comparator circuit keeps an eye on the VCC state in order to identify it, provide a reset output, and switch to the backup supply automatically. Furthermore, a pushbutton input for creating a microprocessor reset is monitored for the RST pin.