Help Send Command + Receive Reply from Fingerprint Reader to Arduino

Hello, We are currently working on a fingerprint project using arduino

Before we start coding the full program we need to test the Fingerprint Reader if it is Receiving and making a response to the arduino.

Heres is the structure for the command and a command to test the connection..

Here is my code for the arduino

]#include <SoftwareSerial.h>
SoftwareSerial Fingerprint(2,3); //Define my Rx,Tx Pins

byte Test[24] =     {0x55,0xAA,0x50,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x01};   //Test Connection //Command For Test

byte data[24];

void setup()
{
  Fingerprint.begin(115200); //start serial connection default baud
  Serial.begin(9600);
    
}

void loop()
{
  
 Fingerprint.write(Test, 24 ); //Send the command
                        
  while(Serial.available() >0); //Wait for bytes
  
  for(int x=0; x<24; x++)
    
    {
      data[x] = Fingerprint.read(); //store bytes 0-23

      Serial.print(data[x], HEX); //display byte
      Serial.print(" ");
      
    }
      Serial.println(); //new line
      delay(2000);
}]

Here's what i receive fro serial monitor;

I received random HEX numbers..its different from what I supposed to receive based on the response table above..

What could be wrong from my codes?...
Pls help me..thanks

for the manual heres the link thaieasyelec.net

  while(Serial.available() >0); //Wait for bytes
  
  for(int x=0; x<24; x++)
    
    {
      data[x] = Fingerprint.read(); //store bytes 0-23

While the number of bytes to read is greater than 0, do nothing. Greater?

Since there are no bytes to read, immediately read all 24 from another object's serial port. Bzzzt.Wrong!

Thanks for pointing that out..

I should be writing Fingerprint.available..revising Now

if you solve the error please send me the code

i dont understand what i do

i am also working on same platform