8266 analogRead(A0) always 1024 dear member.
I have 4 ESP-12 averything OK but one chip behave weird.
always return 1024 on analogRead(A0);
once use ADC_MODE(ADC_VCC) and reflash using ADC_MODE(ADC_TOUT); and never back to normal, is my Chip Error..?
FM 4MB
ArduinoIDE 1.8.13
BR 115200
PS 80MHz
int iVal = 0; 
void setup() { 
  Serial.begin(115200);
  delay(999);
  pinMode(A0,INPUT) ; 
  pinMode(LED_BUILTIN, OUTPUT); 
}

// the loop routine runs over and over again forever:
void loop() {
  iVal=analogRead(A0); 
  Serial.println(iVal); 
  
  if (iVal &gt; 900) digitalWrite(LED_BUILTIN,HIGH);
  else   digitalWrite(LED_BUILTIN,LOW);
  delay(720);  
}
First be sure your voltage on the analog input is less then 1V and greater then zero, that is the range for the input. If nothing connected no guarantee what you will get. Just guessing, no circuit or definition.