ESP32-WROOM devkit v1 hangs

I am trying out simple code with ESP32 and it hangs after 5min or so without any user intervention. How do I even being to troubleshoot this?

substitutions:
  device_name: "esp32"
  device_comment: "test"


esphome:
  name: ${device_name}
  friendly_name: ${device_name}
  comment: $device_comment
  name_add_mac_suffix: false
  project:
    name: "esp32.test"
    version: "1"


esp32:
  board: nodemcu-32s

  framework:
    type: arduino
    version: 2.0.0


output:
  - platform: esp32_dac
    pin: GPIO25
    id: gpio25
    min_power: 0.00
  #  max_power: 100.00

light:
  - platform: monochromatic
    output: gpio25
    name: "GPIO25"
    id: dac_light1



mdns:
  disabled: false
  
logger:

api:


ota:
  password: !secret ota_password
  platform: esphome

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  ap:
    ssid: ${device_name} AP
    password: !secret hotspot_pass

captive_portal:

  # Enable Web server
web_server:
  port: 80

text_sensor:
  - platform: wifi_info
    ip_address:
      name: "${device_name} - IP Address"
    ssid:
      name: "${device_name} - Wi-Fi SSID"
    bssid:
      name: "${device_name} - Wi-Fi BSSID"
  - platform: version
    name: "${device_name} - ESPHome Version"
    hide_timestamp: true

# see: https://esphome.io/components/time.html
time:
  - platform: homeassistant
#    id: homeassistant_time

## end common.yaml