I have the impression that DS18B20 reading is NaN when the device is in hotspot mode after reset. When the device is connected to a hotspot as client, the DS18B20 works.