I have a project with DS18B20 sensors.
The project consists of 6 cables each on has 10 DS18B20 sensors. the cables is shielded and sensors are in it.
Each cable has 2 wires only (Parasite in On)
I have used the sketch below exactly
My problem is the serial monitor show the address and temperature from the sensor as attached. But how did the library arranged the indexes of the sensors ? I need it to be arranged from the beginning of the cable to the end but when i tested it with a heat gun I found the the first sensor in the cable is taking index 6 and second one is 8!
This arrangement is very important to me because this cable will in a tank and I need to now the temperature every 2 meters (cable length is 20m)
I tried to measure the time response for each sensor (as the nearest one will respond faster) however the result is aligned with the index!!