Hello! I have a project in which I use a DS18B20 sensor in a waterproof seal to measure the water temperature (a sensor like this) This worked properly before, but I've just come back from a few weeks of vacation and the sensor stopped working correctly. To be exact, it gives back a temperature of -12700°C. I googled for a few minutes, but couldn't find anything for this exact problem. Maybe some of you know something about this. I might add that the sensor sat submerged in 0,5m of cold water in the last two weeks. I guess that's the source of the problem. Do I have to replace the sensor? Or is just my pullup resistor broken? Thanks for any help.
Edit: Sorry! It's -127.0C of course. I forgot, that I outputted the temperature without a decimal comma. Now I can search this myself better, but help is still welcome :D Edit 2: I can't seem to be able to track down a good answer to -127. Is it a read error, is the thermometer broken and just outputting the minimal amount, or is -127 the temperature that the library outputs when failing to communicate? Edit 3: I tried a few ways of testing if the senor is alive, but nothing seems to be able to find it.