Not working sensor ds18b20 esphome

Good day, forum users and developers! For some reason it is not clear to me that the ds18b20 sensor does not work when determining the address of the
dallas sensor:

  • pin: GPIO2 everything is OK,
    but as soon as add a sensor:
  • platform: Dallas
    address: my address
    name: “Living Temperature”
    the entire NodeMCU esp8266 module stops connecting to wi-fi constantly restarts the wi-fi connection is visible when the usb connection! How to deal with it?

GPIO 0, 2 and 15 have special meaning during boot of the module. Unless you’re using one of the very old ESP-01 modules, that only exposes GPIO 0 and 2, I suggest you use GPIO 4, 5, 12, 13 or 14.
GPIO 4 and 5 are the default pins for I2C, so if you plan to add I2C devices on your module in the future, just stick to GPIO 12, 13 or 14 for 1-wire

Thank you understand! Everything turned out to be easier it was necessary to put the sensor polling interval of 60 seconds and everything worked!