I have an application where I have numerous DS18B20 sensors on one single esp-01.
The general setup works well, but there's always one pesky sensor that reads 85°C - and it's not always the same!
The 85°C is basically the startup value on the scratchpad and usually what you get when you try to read the sensor before the conversion is done.
The original code waits for 800ms, the datasheet sais the conversion should be done after no more than 750ms but still I get 85°C
I have modified _P004_Dallas.ino to include
Code: Select all
pinMode(Plugin_004_DallasPin, INPUT);
//digitalWrite(Plugin_004_DallasPin, LOW);
delay(100);
uint8_t retries = 200;
do {
if (--retries == 0) return false;
delay(5);
} while (!digitalRead(Plugin_004_DallasPin));
Does anyone have any suggestion on this?
pj