Troubleshooting ESP32 and DS18B20 Temperature Sensor

Hi everyone, I’m trying to set up a temperature sensor using an ESP32 with ESPHome, but I’m having trouble getting the DS18B20 sensor to be recognized. I’ve tried two different sensors, two ESP32 modules, and several GPIO pins (23, 4, 2, etc.), but the sensor still isn’t detected. According to Simon’s video, a 4.7KΩ pull-up resistor isn’t necessary if pullup: true is used in the configuration. Here’s the configuration I’m using:

yaml
one_wire:

  • platform: gpio
    pin: number: GPIO2
    mode: input: true
    pullup: true

I’m wondering if there’s something wrong with my setup. Could it be a hardware issue, or is there a specific configuration step I’m missing? Any advice would be greatly appreciated! Thanks in advance for your help. :slight_smile: