Problem in receiving data from Fingerprint

hello guys
i am trying to communicate with fingerprint scanner using UART in arduino UNO
the problem is that i send an command of 24 bytes
and i should receive a response from the fingerprint scanner 24 bytes also
i successful send the command but i don't know how to receive the response which is consists of 24 bytes
here is my code

#include <SoftwareSerial.h>
#define DEBUG 0
SoftwareSerial mySerial(10, 11); // RX, TX

byte addFingerPrint0[] = {0x55,0xAA,0x07,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x01};
void setup(){
   Serial.println("Add fingerprint at ID #0");
   mySerial.write(addFingerPrint0, sizeof(addFingerPrint0));
     for(x = 0 ; x <24 ; x++)
     {
      while(mySerial.available()>0){
      Ack[x] = mySerial.read(); 
    
     
      }
     
    }  
    for(i = 0; i<24;i++)
     Serial.println(Ack[i]);}

please help
and thanks in advance :slight_smile: