fingerprint scanner communication through uart

the preset array was the issue i just lit my board led :slight_smile: i guess here soon there will be working code for this thing floating around because i ams def goin to share it and here is what it looks like thanks awol and paul for all the help you have givin me

#include <NewSoftSerial.h>
#include <string.h>
NewSoftSerial fdk(2, 3);
int ledPin = 13;
int i = 0;
byte incomingByte[10];
byte array1[]={
   0xF5, 0xC,0x0, 0x1, 0x3, 0x0E, 0xFF, 0xFF, 0xFF, 0xF5};
byte array2[]={
  0xFF, 0xFF, 0xFF, 0xF5, 0xC0, 0x10, 0x0E, 0xFF, 0xFF, 0xFF, 0xF5};
byte array3[]={
  0xFF, 0xFF, 0xFF, 0xF5, 0xC0, 0x12, 0x0E, 0xFF, 0xFF, 0xFF, 0xF5};
byte array4[]={
  0xFF, 0xFF, 0xFF, 0xF5, 0xC0, 0x11, 0x0E, 0xFF, 0xFF, 0xFF, 0xF5};


void setup()  
{
  Serial.begin(9600);
  fdk.begin(9600);
  pinMode(13,OUTPUT);
  pinMode(12,OUTPUT);
}

void loop()
{

  if (fdk.available()> 0 )
  {
    for(i=0; i<10;i++)
    {
      incomingByte[i] = fdk.read();
      Serial.print(incomingByte[i],HEX);
    }  
   if(incomingByte[4]==array1[4])
  {
    digitalWrite(13,HIGH);
    Serial.print(array1[5],HEX);
  }
  else
  {
    digitalWrite(12,HIGH);
  } 
  }
  
}