Hello,
I am trying to read analog sensor voltages using a Waveshare ESP32-C6-Pico. It all installs OK but no voltage is displayed in the log window. I have tried various ADC pins.
Any help would be appreciated.
Board: Espressif ESP32-C6-DevKitM-1 (Espressif)
Definition: definitions/boards/esp32-c6-devkitm-1/manifest.yaml
esphome:
name: vswr1
friendly_name: VSWR1
esp32:
board: esp32-c6-devkitc-1
board: esp32-c6-devkitc-1
#variant: ESP32-C6-MINI-1
#flash_size: 4MB
framework:
type: esp-idf
logger:
api:
encryption:
key: “Xy1tMuGl2EEJkG+jkRpAPAA4CzpPIK12FG5DmlkFpN4=”
ota:
- platform: esphome
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: VSWR1 Fallback Hotspot
password: “RNwaGV5j651y”
captive_portal:
sensor:
- platform: adc
pin: GPIO2
name: “Voltage”
attenuation: 11db
update_interval: 10s
INFO ESPHome 2026.6.4
INFO Loaded validated config cache for vswr1.yaml, skipping validation.
INFO Starting log output from /dev/ttyACM0 with baud rate 115200
[19:02:06.480][D][wifi:1463]: Found networks:
[19:02:06.481][I][wifi:1434]: - ‘Network2C’ (02:50:7F:C1:B5:62) ▂▄▆█ Ch:13 -34dB P:0
[19:02:06.482][I][wifi:1434]: - ‘Network-OS-N’ (80:3F:5D:42:B7:BB) ▂▄▆█ Ch:11 -67dB P:0
[19:02:06.482][D][wifi:1857]: Retry phase: INITIAL_CONNECT → SCAN_CONNECTING
[19:02:06.483][I][wifi:1097]: Connecting to ‘Network2C’ (02:50:7F:C1:B5:62) (priority 0, attempt 1/2 in phase SCAN_CONNECTING)…
[19:02:08.067][I][wifi:1575]: Connected
[19:02:08.068][D][wifi:1592]: Disabling AP
[19:02:08.068][C][wifi:1237]: IP Address: 192.168.0.74
[19:02:08.069][C][wifi:1248]: SSID: ‘Network2C’
[19:02:08.069][C][wifi:1248]: BSSID: 02:50:7F:C1:B5:62
[19:02:08.070][C][wifi:1248]: Hostname: ‘vswr1’
[19:02:08.070][C][wifi:1248]: Signal strength: -34 dB ▂▄▆█
[19:02:08.070][C][wifi:1248]: Channel: 13
[19:02:08.070][C][wifi:1248]: Subnet: 255.255.255.0
[19:02:08.070][C][wifi:1248]: Gateway: 192.168.0.1
[19:02:08.071][C][wifi:1248]: DNS1: 8.8.8.8
[19:02:08.071][C][wifi:1248]: DNS2: 8.8.4.4
[19:02:08.087][W][component:405]: wifi cleared Warning flag
[19:03:03.432][I][safe_mode:142]: Boot seems successful; resetting boot loop counter
[19:03:04.395][D][preferences:148]: Writing 1 items: 0 cached, 1 written, 0 failed
[19:07:08.077][D][wifi:2447]: Roam check skipped, signal good (-37 dBm, attempt 1/3)
[19:12:08.079][D][wifi:2447]: Roam check skipped, signal good (-37 dBm, attempt 2/3)