DS3231 from adafruit to measure tempature

I am attempting to use a DS3231 RTC from adafruit to measure temperature (Adafruit DS3231 Precision RTC Breakout : ID 3013 : $13.95 : Adafruit Industries, Unique & fun DIY electronics and kits). While it doesn’t specifically say that is can measure the temperature and display it through the serial, I have seen several project with people using variants of the DS3231 to measure temperature.

attached is the code I am using, I have all the necessary libraries to use the DS3231 and I can accurately measure time with it no problem.


RTCtemptest.ino (296 Bytes)

What is the problem? What does it print?


What is the problem? What does it print?


It doesn't print anything in the serial monitor.

Change the whole setup function to this

void setup() {
  Serial.println("Init RTC");
  Serial.println("RTC started");

If it prints "Init RTC" but doesn't print "RTC started" then your code is hung up in the initialization of the RTC which usually indicates that you haven't wired it properly.