Help needed with esp32 touchpad

I’m using a esp32-s3-devkitc-1-n32r8 with esphome version 2024.12.4.

Here is my yaml file :slight_smile:

esphome:
  name: seesaw
  platformio_options:
    build_flags:
      -DBOARD_HAS_PSRAM 
      -mfix-esp32-psram-cache-issue
    board_build.arduino.memory_type: opi_opi
    board_build.f_flash: 80000000L
    board_build.flash_mode: qio 

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
  flash_size: 32MB

# Working!  Don't change a thing

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: ""

ota:
  - platform: esphome
    password: ""

wifi:
  ssid: "fakeWiFi"
  password: "runnyGreenEggs"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "S3Devkit Fallback Hotspot"
    password: "WPT9Z87bsEhl"

captive_portal:

light:
  - platform: esp32_rmt_led_strip
    rgb_order: GRB
    pin: GPIO38
    num_leds: 1
    rmt_channel: 0
    chipset: sk6812
    name: "RGB LED"

esp32_touch:
  setup_mode: false
  id: esp32_touch_me

binary_sensor:
#  - platform: gpio
#    name: "Boot Button"
#    pin:
#      number: 0
#      inverted: true
#      mode:
#        pullup: true
        
#  - platform: esp32_touch
#    name: "Left Touch"
#    id: esp32_touch_left
#    pin: GPIO02
#    threshold: 0

  - platform: esp32_touch
    name: "Right Touch"
    id: esp32_touch_right
    pin: GPIO10
    threshold: 0

sensor:
  - platform: template
    name: "Raw touch right"
    lambda: |-
        return id(esp32_touch_right).get_value();
    update_interval: 3s


The value is way to high (320000) and never changes.
I have tried several different pins and both esp-idf and arduino frameworks.

Thanks for any ideas