The ESP8266EX has ADC Function. Here are Code Examples