Sketch for the DS3231 not working

Assume you have all necessary libraries installed properly.

Always show us your ‘current’ complete sketch.
Use CTRL T to format the sketch.
Please use code tags.
Use the </> icon in the posting menu.

[code] Paste sketch here. [/code]

See this for installing libraries: