cannot read from softwareserial
SoftwareSerial esp8266(0,1)


You can't use pins 0 and 1 for software serial since they are the hardware serial Serial than you use for communication with the PC.

Pick two other pins to use.