Dallas sensor crashes when output activates

I use 12v bulbs with G4 socket on my automower house for just some lighting. Connected to a Mosfetboard and then controlled by ESP32-Devkit-v1.
However, when it gets triggered late at night according to sunset then my dallas-sensor on the house, which is on the same board, loses its connection and doesnt show values over the night. On the morning when the lights turn off the sensor activates again. It shows as unavailable in HA during the night.

The bulbs is connected to 12v through a mosfet board so the ESP32 controls the mosfet with GPIO2.

This might be a normal behaviour but i just want to make sure… My solution is ofc to add another board but i would like not to…

Anyone have any idea why this is happening?

The binary-sensor works as a charm even though the dallas-sensor crashes.

  - platform: monochromatic
    name: "Automowerhus belysning"
    output: Automowerhus

  - platform: ledc
    id: Automowerhus
    pin: GPIO2

  - platform: gpio
      number: GPIO5
      inverted: true
    name: Automower jobbar
      - delayed_on: 500ms
      - delayed_off: 500ms

  - pin: 
      number: GPIO15
      mode: input
    update_interval: 300s

  - platform: dallas
    address: 0x93012063928A6028
    name: Temperatur Automowerhus