No data in Serial monitor for DS 3231 Serial easy example program

Hi,
I am trying to test a ds3231 RTC module with Arduino Uno using library example program DS3231 - Rinky-Dink Electronics
ds3231 - Arduino - ds3231 serial easy. My problem is I can not see any output on the serial monitor after the program is uploaded. Please point out to the solution.
(I am working on Arduino IDE on a laptop with Windows 10)

My recommendation is to add some additional Serial.println() statements throughout the program so you can see whether you can successfully get any serial output, and if so, how far through the program does it get before hanging.

For example:

  // Initialize the rtc object
  Serial.println("Before rtc.begin()");
  rtc.begin();

I tried that, the program does not respond after it enters loop. I don't know what could have gone wrong.

sanjayrajure:
I tried that, the program does not respond after it enters loop. I don't know what could have gone wrong.

Post your code HERE, not using some malformed not-a-link URL.