The sensor has simple interface, microcontroller need only one I/O pin can communicate with many DS18B20, the circuit structure is simple. The DS18B20 is connected with MCU is shown below Fig.4, the DQ pin through a 4.7kΩ pull-up resistor connected with MCU P1.7 pin[6].