I am able to connect Arduino uno with Esp8266, now I want to connect ultrasonic sensor distance to Esp8266 and i want to read data and send that data through rest call. My question is how to connect ultrasonic sensor to esp8266 and how to read data from sensor.
Arduino Uno ESP8266
3.3v-------------->Vcc
Tx -------------->Tx
Rx -------------->Rx
Gnd-------------->Gnd
Esp8266
CH-PD---------> Vcc
Gnd --------->GP IO 0