Report Bugs Here

Moderator: Mmiscool

User avatar
By int47
#36585 Hello!

I connected 3 DS18b20 and attempted to read all 3. It works with all three sensors present.
But, with disconnected 3rd sensor instead of -127 I get same value 2nd sensor reads.
With only the first sensor connected, all three temperature readings were the same and from the first sensor.
With no sensors connected, all three readings were -127.

Since ESP voltage is 3.3V, sensors VCCs were connected to 3.3V (not parasite mode).
I used "temp" command in a timer. On each timer event only one sensor was read.
User avatar
By Mmiscool
#36625 It initializes the sensors at start up.

Adding or removing them after start up is not advisable.
User avatar
By heckler
#36690 Hey int47,

I tried your code with slight modification to cause it to read the 3 temps every 5 seconds and it appears that if you remove one of the sensors it just reads another sensor twice.

I used some freeze spray (computer dust off turned upside down) to cool one of the sensors and I could see that two of the temperatures went cold together.

I did appear that the sensor was actually read twice in a row as I got two slightly different cold temps so it is not just repeating the second temperature twice.

I also used the freeze spray to figure out which sensor was 1,2,3 etc.

just my 2 cents
dwight