ESP8266 first code help

again, why analogRead? it doesn't work on io pins of esp8266. use digitalRead