WiFi module ESP8266-01 for Arduino not working
Use this code to send commands to the ESP:

#include &lt;SoftwareSerial.h&gt;

    SoftwareSerial esp8266(2, 3);

    void setup() {
      Serial.begin(9600);

      esp8266.begin(9600);
    }

    void loop() {
      while(esp8266.available()) {
         Serial.write(esp8266.read());
      }

      while(Serial.available()) {
        esp8266.write(Serial.read());
      }
    }


This simply reads everything from the ESP chip and sends it to the console and vica versa.

To modify the baud rate on the chip, send the following command in the serial monitor:

AT+UART_DEF=9600,8,1,0,0


This sets the baud rate to 9600 and remembers it for further use.