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();
}