Problems with ESP8266

Hello, I bought this ESP8266 module

I’m trying this sketch:

#include <SoftwareSerial.h>
SoftwareSerial BT1(3, 2); // RX | TX

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

void loop()
  {  String B= "." ;
     if (BT1.available())
         { char c = ;
     if (Serial.available())
         {  char c =;

I only get trash from serial port like this:


You might try using another baud rate like 115200.

are you using a 5v arduino or a 3.3v? the esp8266 uses 3.3v, so if you have 5v arduino, you need to use a level shifter (or voltage divider) to properly read the serial data (and avoid possibly damaging your esp). Also, software serial to the esp is not the best.