MCU and temperature sensor are connected by I2C bus. I2C bus takes up two MCU input and output lines, and the communication between them depends on software completely. The address of the temperature sensor can be set by two address pins, which makes it possible to connect eight such sensors on one I2C bus at the same time. When MCU needs to access the sensor, it should first send an 8-bit register pointer, and then send the address of the sensor (7-Bit address, the low bit is WR signal). There are three registers in the sensor that can be used by MCU. The 8-bit register pointer is used to determine which register the MCU wants to use. The main program will constantly update the configuration register of the sensor, which will make the sensor work in single step mode, and the temperature will be measured every time the update is made.