A little help on how to wire SQW pin of DS3231

You need to have that resistor to keep it low/high or you will not get it working....

a 10k resistor will do just fine.