I don't know if this will help.
I made a boiler control circuit that measured the temperature in 3 different places, using DS18B20 temperature sensors.
In my circuit I wired all three temperature sensors in parallel. The individual ones can be resolved and the three temperatures measured separately, as each DS18B20 has a unique serial number.
The biggest problem is working out which sensor is which. In my application, all three were in one water tank, so the highest temperature had to be at the top.
If you wired the sensors to three separate pins, you don't have to resolve the serial numbers and the wiring tells you which temperature is which.
The PIC that I used was a PIC24FJ32GA002. The temperatures are displayed on an SLR2016
The code is attached.