"temperature data logger" Compilation error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'

See this thread

where you will see sprintf() on Arduino does not do floats.

You need to "look into dtostrf();".

HTh

a7