Here I have attached the code to communicate ESP8266 with other components

arduino-esp8266