A little help on how to wire SQW pin of DS3231

Connect it to an Arduino pin, and connect a 4.7K resistor from the pin to 5V.
The resistor will create the high level, the chip will pull it low for low levels.