I have an ESP32, the current program running on it uses WiFi but, if I use WiFi and Analog read at the same time, Analog read does not work.
Why does this happen and what's the way around it?
Hardware - ESP32, Pin 25 for the ADC
Code-
#include <WiFi.h>
void setup() {
Serial.begin(115200);
WiFi.begin("You really", "Want to know"); // If this line is commented then it works
}
void loop() {
Serial.println(analogRead(25));
}