Code help grouping id fingerprint scanner

I have problem coding to write between id, can anybody help me solve it?
I have fingerprint scanner project, I want to blink the led with 1pin output for 5 id.
If I write it manually until 15 id the scanner become slow to back to return.
I frustating coding with it
{
if(finger.fingerID==1) ==> its possible to id1 until id5?
digitalWrite(12, HIGH);
delay(3000);
digitalWrite(12, LOW);
}

this my code, very slow to return

/*************************************************** 
  This is an example sketch for our optical Fingerprint sensor

  Designed specifically to work with the Adafruit BMP085 Breakout 
  ----> http://www.adafruit.com/products/751

  These displays use TTL Serial to communicate, 2 pins are required to 
  interface
  Adafruit invests time and resources providing this open source code, 
  please support Adafruit and open-source hardware by purchasing 
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.  
  BSD license, all text above must be included in any redistribution
 ****************************************************/


#include <Adafruit_Fingerprint.h>
#include <SoftwareSerial.h>

int getFingerprintIDez();

// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino  (WHITE wire)
SoftwareSerial mySerial(2, 3);
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);

// On Leonardo/Micro or others with hardware serial, use those! #0 is green wire, #1 is white
//Adafruit_Fingerprint finger = Adafruit_Fingerprint(&Serial1);

void setup()  
{
  while (!Serial);  // For Yun/Leo/Micro/Zero/...
  
  Serial.begin(9600);
  Serial.println("Adafruit finger detect test");
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(10, OUTPUT);
  // set the data rate for the sensor serial port
  finger.begin(57600);
  
  if (finger.verifyPassword()) {
    Serial.println("Found fingerprint sensor!");
  } else {
    Serial.println("Did not find fingerprint sensor :(");
    while (1);
  }
  Serial.println("Waiting for valid finger...");
}

void loop()                     // run over and over again
{
  getFingerprintIDez();
  delay(50);            //don't ned to run this at full speed.
}

uint8_t getFingerprintID() {
  uint8_t p = finger.getImage();
  switch (p) {
    case FINGERPRINT_OK:
      Serial.println("Image taken");
      break;
    case FINGERPRINT_NOFINGER:
      Serial.println("No finger detected");
      return p;
    case FINGERPRINT_PACKETRECIEVEERR:
      Serial.println("Communication error");
      return p;
    case FINGERPRINT_IMAGEFAIL:
      Serial.println("Imaging error");
      return p;
    default:
      Serial.println("Unknown error");
      return p;
  }

  // OK success!

  p = finger.image2Tz();
  switch (p) {
    case FINGERPRINT_OK:
      Serial.println("Image converted");
      break;
    case FINGERPRINT_IMAGEMESS:
      Serial.println("Image too messy");
      return p;
    case FINGERPRINT_PACKETRECIEVEERR:
      Serial.println("Communication error");
      return p;
    case FINGERPRINT_FEATUREFAIL:
      Serial.println("Could not find fingerprint features");
      return p;
    case FINGERPRINT_INVALIDIMAGE:
      Serial.println("Could not find fingerprint features");
      return p;
    default:
      Serial.println("Unknown error");
      return p;
  }
  
  // OK converted!
  p = finger.fingerFastSearch();
  if (p == FINGERPRINT_OK) {
    Serial.println("Found a print match!");
  } else if (p == FINGERPRINT_PACKETRECIEVEERR) {
    Serial.println("Communication error");
    return p;
  } else if (p == FINGERPRINT_NOTFOUND) {
    Serial.println("Did not find a match");
    return p;
  } else {
    Serial.println("Unknown error");
    return p;
  }   
  
  // found a match!
  
  Serial.print("Found ID #"); Serial.print(finger.fingerID); 
  Serial.print(" with confidence of "); Serial.println(finger.confidence); 

}
// returns -1 if failed, otherwise returns ID #
int getFingerprintIDez() {
  uint8_t p = finger.getImage();
  if (p != FINGERPRINT_OK)  return -1;

  p = finger.image2Tz();
  if (p != FINGERPRINT_OK)  return -1;

  p = finger.fingerFastSearch();
  if (p != FINGERPRINT_OK)  return -1;
  
  // found a match!
  {
   if(finger.fingerID==1)
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }
  {
   if(finger.fingerID==2)
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }
  {
   if(finger.fingerID==3)
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }
  {
   if(finger.fingerID==4)
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }
  {
   if(finger.fingerID==5)
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }
  
  {
   if(finger.fingerID==6)
  digitalWrite(11, HIGH);
  delay(3000);
  digitalWrite(11, LOW);
  }
    {
   if(finger.fingerID==7)
  digitalWrite(11, HIGH);
  delay(3000);
  digitalWrite(11, LOW);
  }
    {
   if(finger.fingerID==8)
  digitalWrite(11, HIGH);
  delay(3000);
  digitalWrite(11, LOW);
  }
    {
   if(finger.fingerID==9)
  digitalWrite(11, HIGH);
  delay(3000);
  digitalWrite(11, LOW);
  }
    {
   if(finger.fingerID==10)
  digitalWrite(11, HIGH);
  delay(3000);
  digitalWrite(11, LOW);
  }
  
  {
   if(finger.fingerID==11)
  digitalWrite(10, HIGH);
  delay(3000);
  digitalWrite(10, LOW);
  }
   {
   if(finger.fingerID==12)
  digitalWrite(10, HIGH);
  delay(3000);
  digitalWrite(10, LOW);
  }
   {
   if(finger.fingerID==13)
  digitalWrite(10, HIGH);
  delay(3000);
  digitalWrite(10, LOW);
  }
   {
   if(finger.fingerID==14)
  digitalWrite(10, HIGH);
  delay(3000);
  digitalWrite(10, LOW);
  }
   {
   if(finger.fingerID==15)
  digitalWrite(10, HIGH);
  delay(3000);
  digitalWrite(10, LOW);
  }
  
  Serial.print("Found ID #"); Serial.print(finger.fingerID); 
  Serial.print(" with confidence of "); Serial.println(finger.confidence);
  return finger.fingerID; 
}

Thanks

{
   if(finger.fingerID==4)
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }

Your problem is that you have the braces in the wrong place. Written this way, only the first line in that block is conditional. The delay call and the call to write the pin LOW will happen whether the fingerID equals 4 or not. So you are getting a 3 second delay for every check regardless of whether it matched or not.

If statements should be written this way:

   if(finger.fingerID==4){
  digitalWrite(12, HIGH);
  delay(3000);
  digitalWrite(12, LOW);
  }

The code block starts after the if statement, not before.

And, incidentally, it is possible to do what you ask:

if(finger.fingerID >=1 && finger.fingerID <= 5)

This will be true for any value from 1 to 5 inclusive.

now its work perfectly, thanks to you Delta_G. GBU

Even more condensed (replacing all the if’s), you could write

  byte id = finger.fingerID; // for typing convenience

  if (id > 0 && id < 16) { // filters values to 1-15

    byte ledPin = 12 - ((id - 1) % 5); // maps 1-5 to 12, 6-10 to 11, 11-15 to 10

    digitalWrite(ledPin, HIGH);
    delay(3000);
    digitalWrite(ledPin, LOW);
  }