If you want to connect a DS18B20 sensor to a microcontroller like the ESP8266 (ESP-12, D1 Mini, NodeMCU etc.), you have to connect the data line to the desired GPIO in addition to the supply voltage (VCC and GND). To ensure reliable operation, an additional pull-up resistor must be used between the data line and the supply line VCC. The resistor should be about 5kΩ (e.g. 4.7kΩ).
If there are still free GPIO’s available, we recommend to distribute several temperature sensors over them and to use a pull-up resistor each:
If there is a shortage of GPIO’s, several sensors can be connected to one GPIO (with only one pull-up resistor):
Of course you can also combine the different variants as you wish. The necessary configuration for this can then be easily created with our configurator.