Trying to link to esp32 nodemcu s2

Hi I’m stuck again. I’ve bought some esp2 boards and I’m having difficulty getting esphome to link with them. I did find some instruction but I have failes to incorporae them into my sketch. here is the problem area
< esphome:
name: 32-soil-moisture
friendly_name: 32 soil moisture

esp32:
platformio/[email protected]
** board:esp32doit-devkit-v1**

Enable logging

logger:

Enable Home Assistant API

api:
encryption:
key: “xSPemlHe3fu4SxFAh8y9EPSF7uc/xSsj46xUhov9O04=”

ota:

  • platform: esphome
    password: “c1b89da70746de31040566e3a5a0053c”

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

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “32-Soil-Moisture”
password: “59pb65v8DhDS”

captive_portal:

sensor:

  • platform: adc
    id: moisture_voltage
    name: “Soil Moisture Voltage”
    pin: GPIO36

the problem seems to in the bold section ops bold dosn’t seem to worl. the problem is in the second group headed esp32
`