Programming Trouble DS18B20

R1,R2 and R3 are ohmic (thermal) resistors (producing heating in a boiler), so the pin 10,11,12 they end up in 5V three channel relay module, the relays allow or not the strong current to thermical resistors
the DS18B20 is reading the temperature incide the boiler and open or close the resistors