ESP32 analogRead()

on my esp32,i tried to read sensor data using analogRead but it only shows constant value in the dashboard

I use the same code for esp8266 and it works like a charm . Any reasons why ?

ESP32:

void setup() {
thing.add_wifi(SSID, SSID_PASSWORD);
thing[“Soil 1”] >> outputValue(analogRead(14));
}
void loop() {
thing.handle();
}

ESP8266:

void setup() {
thing.add_wifi(SSID, SSID_PASSWORD);
thing[“Soil 1”] >> outputValue(analogRead(14));
}
void loop() {
thing.handle();
}

Hello @harris! have you tried with another ADC port? maybe this one has any specific function in ESP32 processor.