Need help for this Code

I've a problem, i try to automatic Wifi Configuration ESP8266 like this :

#define SSID "KOSAN 8"
#define PASS "458italy"
#define Baud_Rate 115200
#define Delay_Time 5000

void setup() {
  Serial.begin(Baud_Rate);//inisialisasi serial 
  Serial.println("AT");

  delay(5000);//menunggu 5 detik bisa ubah biar lebih cepat

  //sambungkan ke wifi
  Serial.println("AT+CWMODE=1");//mode wifi client
  delay(2000);//menunggu dengan interval 2 detik

  String cmd = "AT+CWJAP=\"";//at command konek ke wifi router
  cmd += SSID;//SSID diisi nama wifi
  cmd += "\",\"";
  cmd += PASS;//PASS diisi password wifi
  cmd += "\"";//simpelnya ya gini AT+CWJAP="SSID","PASS";

  Serial.println(cmd);//kirim at command ke esp8266
  delay(5000);//tunggu sampe 5 detik

  if(Serial.find("OK")){//respon dari esp8266 
    Serial.println("WORK");
  }else{
    Serial.println("FAILED");
  }
  //end sambungan ke wifi
}

void loop() {
  // put your main code here, to run repeatedly:

}

but, the result failed.. can give me solution ? Thank's

How do you know it doesn't work? If esp is connected to Serial, you can't write debug messages to Serial

We seem to be suffering an outbreak of less than helpful thread titles today.