wait for the response of the AT command with the A6 module and execute an action

I have this code for arduino to be able to execute an action after having received the answer AT of the module A6.
the subject is that I want the response to be displayed on the serial monitor and that an action is executed when the response is OK

//ENVIO DE COMANDOS AT POR PUERTO SERIAL AL MODEM A6
#include <SoftwareSerial.h> // Incluimos la libreria SoftwareSerial
SoftwareSerial mySerial(6, 7); // Declaramos los pines RX(8) y TX(9) que vamos a usar
String cliente= "2";
String consumo= "12564";
const char lecserial;
char Status;
int ledpower = 9;
int ledstatus= 4;

void setup(){
Serial.begin(19200); // Iniciamos la comunicacion serie
mySerial.begin(19200); // Iniciamos una segunda comunicacion serie
delay(1000); // Pausa de 1 segundo
Serial.println("ya esta conectado la comunicacion serial");
mySerial.println("AT");
}

void LEDSTATUS()
{
while(mySerial.available()!=0)
lecserial=mySerial.read();
Serial.println(lecserial);
if (strstr(lecserial,"OK")) //comprueba la palabra para encender led
{
digitalWrite(ledstatus,HIGH);
}
}

void loop(){

if (Serial.available()){ // Si la comunicacion serie normal tiene datos
while(Serial.available()) { // y mientras tenga datos que mostrar
mySerial.write(Serial.read()); // Los sacamos por la comunicacion SoftwareSerial
}
//mySerial.println(); // Enviamos un fin de linea
}
if (mySerial.available()){ // Si la comunicacion SoftwareSerial tiene datos
Serial.write(mySerial.read()); // Los sacamos por la comunicacion serie normal
}
}