[RESOLVED] DS18B20 Library Modifications

@joearkay, FYI, when you run SYSTEM_MODE(AUTOMATIC); which is the default mode, time is synched automatically when the cloud connection is established. However, it may take a few seconds during which the RTC on the Photon will be incorrect if power has been removed and the RTC is wiped. You can do a simple test to see if the time is valid by checking that Time.year() > 1970. I usually run this code to do the check:

while (Time.year() <= 1970) {
    delay(10);
}

Note that the delay(10) will call Particle.process() in the background.

:wink: