In this illustration we will going to wire the ESP8266 12E nodeMCU with Ultrasonic Raging Sensor HCSR04. As you can see the illustration below the sensor trigger pin is connected to D1 which is pin 5 in Arduino Board, and
Using ESP8266 Wifi Transceiver Module with SDK
The ESP8266 Soc. ESP8266 is a highly integrated chip that has TCP/IP Protocol stack. It’s offers a complete and self contained Wi-Fi Network Communication Solution, allowing it to either host the application or offload all Wifi function from another application