Pin connections
Connect ESP UOR(GPIO 3) pin to Arduino RX(D0) pin. Connect ESP UOT(GPIO 1) pin to Arduino TX(D1) pin.
Supply energy to ESP connecting Arduino 5V pin and GND to ESP 5V and GND pin.
Connect Arduino RESET pin to the GND.
To program, connect ESP IO0(GPIO 0) to GND. To start and use serial monitor, disconnects the ESP IO0(GPIO 0) from GND.
If while uploading the program the monitor dont pass from "Connecting..................", press the ESP RST button and release.