ESPHome - Sensor DS18B20 on WT32-ETH01 Compilation Error

Dear all
I need your assistance. In a room without WLAN I installed a ESPHome based on a WT32-ETH01 board and there is a temp sensor DS18B20 connected. The one wire config:

one_wire:
  - platform: gpio
    pin: GPIO14

seems to work, in the logfile the sensor (incl. address) is listed. But as soon, as I define the sensor:

sensor:
  - platform: dallas_temp
    address: 0xc3030b9794195028
    name: "Temperatur Whirlpool"
    update_interval: 60s

a compilation error occours:

/data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: .pioenvs/esphome3/src/main.cpp.o:(.literal._Z5setupv+0xc8): undefined reference to `_ZTVN7esphome11dallas_temp23DallasTemperatureSensorE' /data/cache/platformio/packages/toolchain-xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: .pioenvs/esphome3/src/main.cpp.o:(.literal._Z5setupv+0xcc): undefined reference to `_ZTVN7esphome11dallas_temp23DallasTemperatureSensorE' collect2: error: ld returned 1 exit status *** [.pioenvs/esphome3/firmware.elf] Error 1

The config ot the ESPHome:

esphome:
  name: "esphome3"
  friendly_name: ESPHome 3

esp32:
  board: esp32dev
  framework:
    type: arduino

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO0_IN
  phy_addr: 1
  power_pin: GPIO16


web_server:
  port: 80

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: the key... 

ota:
  - platform: esphome
    password: the password...

Whats wrong? Thanks for any feedback.I am feeling quite hopeless.

Best Regards
Chris

Looks correct code, you could give id for one_wire and point to that on dallas_temp.
Did you try to clean build files?

After clean the build files the installation has been successful and the WT32-ETH01 is working with the mentioned configuration - Thank you Karosm!