The data sheet of the sensor requires minimum of 3 V on the data pin. I use a 220 Ohm instead of the 4.7k, which is often recommended because of the OneWire library, and it works just fine.
With the 4.7k my sensors used to work for some time(2-3 on/off switches) and then I couldn't get any readings. The lower resistor fixes this.
tested a single DS18B20 on a NodeMCU V1 ESP-12E first using pin D1 (GPIO5) then pin D2 (GPIO4) all worked OK - pullup is 4.7K
I only have one DS18B20 therefore cannot test two devices
which GPIOx were you having problems with?
That's over the safety limit of the DS18B20.
Absolute max sink current is 4mA according to the datasheet.
I wouldn't go lower than 1k.
(3volt/1kohm = 3mA)
Leo..
Read the data sheet again, its min sink current (the opposite of "Absolute max") of 4mA @ Vio = 0.4 V. As I said earlier you need a min of +3.0 V on Vpu, which will not happen if you power with an esp and use a 4.7k.