Mini 2
Mini 2
UNIVERSITY
                     BELGAUM, KARNATAKA-590014
                       BACHELOR OF ENGINEERING
                                               In
                                          2022-2023
     PES INSTITUTE OF TECHNOLOGY AND MANAGEMENT
                        NH-206, Sagar Road, Shivamogga-577204, Karnataka, India.
      Affiliated to VTU, Belagavi, Approved by AICTE, New Delhi,and Accredited by NAAC & NBA,
                   Recognized by Govt. of Karnataka. An ISO 9001:2015 Certified Institute.
The mini project report has been approved as it satisfies the academic requirements
inrespect of mini project work prescribed for the said Degree.
External Viva
Name & Signature of the
examiners with date:-
1.
2.
                                Acknowledgement
We are indebted to Mr. Jagadish M, Mini Project Coordinator for his assistance. We also
extend our heartfelt gratitude to Dr. Madhavi M., HoD, Department of Electronics &
Communication Engineering and to Dr. Chaitanya Kumar M.V., Principal, for their
advice and suggestions at various stages of the work.
Lastly, we take this opportunity to offer our regards to all of those who have supported
us directly or indirectly in the successful completion of this project work.
SWATHI PRABHU
UNNATHI H R
VAISHNAVI A O
                                                                                           1
                           Institute Vision and Mission
                                    Our Vision
To be the most preferred institution for engineering & management education,
research and entrepreneurship by creating professionally superior and ethically strong
global manpower.
                                     Our Mission
To prepare students for professional accomplishments and responsible global citizenship
while fostering continuous learning and to provide state-of-the-art education through the
committed and highly skilled faculty by partnering and collaborating with industry and
R&D institutes.
                                      Our Vision
To be a leading center of excellence in the field of electronics and communication
engineering for learning and research with professional ethics.
                                     Our Mission
    •   To provide quality technical education for students to develop into globally
        competent professionals.
    •   To develop a framework for collaboration and multidisciplinary activities to
        ensure ethical and value based education to address social needs.
Electronics and Communication Engineering Graduates Will Have the Ability to;
    • PSO1: Analyze and design analog and digital circuits or systems for a given
       specification and function.
    • PSO2: Implement functional blocks of hardware-software co-designs for signal
       processing and communication applications.
                                                                                            2
Abstract:
The automated attendance system based on fingerprint using Arduino with SMS alert is a
solution designed to streamline the attendance process in various institutions, such as
schools, colleges, and organizations. It leverages fingerprint recognition technology to
accurately identify individuals and record their attendance. The system is built using
Arduino, a microcontroller platform, which provides the necessary hardware and software
interfaces for fingerprint scanning and SMS communication.The system consists of several
components, including a fingerprint sensor, Arduino board, GSM module, and a database for
storing attendance records. When a person places their finger on the sensor, the fingerprint is
scanned and compared with the pre-stored fingerprint templates in the database. If a match is
found, the system marks the attendance for that person and sends an SMS alert to a
designated phone number, notifying the relevant authority or guardian about the attendance
status.The Arduino board acts as the central processing unit, coordinating the communication
between the fingerprint sensor and GSM module. It captures the fingerprint data, performs
the matching process, and triggers the SMS alert if necessary. The GSM module enables the
system to send SMS messages to the designated phone number, providing real-time
attendance updates.This automated attendance system offers several advantages over
traditional methods. It eliminates the need for manual attendance taking, reducing
administrative workload and potential errors. The system also enhances accuracy and
security by using fingerprint recognition, ensuring that attendance records cannot be
manipulated. Additionally, the SMS alert feature enables immediate notifications, allowing
for prompt action in case of any irregularities or absences.In conclusion, the automated
attendance system based on fingerprint using Arduino with SMS alert is an efficient and
secure solution for managing attendance in various institutions. By leveraging fingerprint
recognition and SMS communication, the system simplifies the attendance process, improves
accuracy, and enables real-time monitoring and notification.
                                                                                              3
                                                                                            4
TableofContents                                                                             5
ListofFigures 6
1      Introduction                                                                         1
1.1     Motivation.. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         2
1.2     Objectives. . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .        2
1.3     Methodology ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . .           2
1.4     BlockDiagram ... . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.5     Applications.. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.6     AdvantagesandDisadvantages... . . . . . . . . . . . . . . . . . . . .
1.7     OrganisationofReport. . .. . . . . . . . . . . . . . . . . . . . . . . .
2 Literaturesurvey
 3SoftwareRequirements                                                                      69
 3.1 Description of software used .. . . . . . . . . . . . . . . . . . . . . . . .
    4 SystemBlockDiagram                                                                        10
 4.1      SoftwareImplementation.. .. . . . . . . . . . . . . . . . . . . . . . .               10
    5 ResultAnalysis                                                                            12
 5.1      Original Image... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         12
 5.2 Hidden Image........................ . . . ........5.3 Secret data.. . . . . . . . . . . 15
 . . . . . . . . . . . . . . .
                                                                                              9
6 ConclusionandFuturescope 13
    References                                                                                  14
    Personal profile                                                                            15
                                                                        4
5
    Automated attendance system based on fingerprint with SMS alert                                                             2022-2023
of figures
4.1Methodology ............................................................................................................................. 10
Chapter 1
Introduction
1.1 Objective
   The objectives of an automated attendance system based on fingerprint using Arduino with
SMS alert are as follows:Accurate Attendance Tracking,The system should accurately track
attendance based on fingerprint recognition, ensuring precise recording of attendance data
without errors or discrepancies.Real-time SMS Alerts,The system should send real-time SMS
alerts to designated recipients when specific attendance events occur, such as late arrivals,
absences, or unauthorized access attempts. This enables immediate notification and timely
response.Customizable Alert Configuration,The system should provide the flexibility to
customize the SMS alerts, allowing administrators to define the trigger conditions, recipients,
and content of the messages. This customization accommodates the unique requirements of
different organizations or institutions.Proxy Attendance Prevention,By relying on fingerprint
recognition, the system should effectively prevent proxy attendance, ensuring that only the
rightful individual can mark their attendance. This enhances the integrity and accuracy of
attendance records.Emergency Situations,The system should be capable of detecting and
responding to emergency situations, such as prolonged absence or unexpected events. It
should send SMS alerts to predefined emergency contacts, enabling swift action and
support.Attendance Monitoring and Reporting, The system should provide tools for
monitoring and analyzing attendance data. It should generate reports or statistics that help
identify attendance patterns, trends, and potential areas for improvement.User-friendly
Interface,The system should have a user-friendly interface, guiding users through the
attendance process. It should provide clear instructions and feedback to ensure a smooth and
convenient experience for individuals using the system.Data Security and Privacy,The
system should prioritize the security and privacy of attendance data. It should implement
measures to safeguard sensitive information, such as encrypting the data and adhering to
relevant data protection regulations.Error Handling and Validation,The system should handle
errors or exceptions that may occur during the attendance tracking or SMS alert process. It
should perform validation checks to ensure data accuracy and reliable delivery of SMS
alerts.Integration and Scalability,The system should have the capability to integrate with
other systems or software, such as attendance management systems or HR databases. It
should also be scalable, accommodating different settings and varying numbers of users
without compromising performance.By achieving these objectives, an automated attendance
system based on fingerprint using Arduino with SMS alert provides a robust and efficient
solution for accurate attendance tracking, timely communication, and enhanced security in
various educational, corporate, or organizational settings.
1.3 Methadolagy
The design is based on a modular approach. The entire architecture can be divided into 4
different sections which are as follows:
 Input section (Fingerprint sensor).
 Control section (Arduino).
 Display unit (LCD)
 Output section (GSM and PC).
 The student is expected place his/her finger on the fingerprint scanner.the scanner then
records the unique biometric of the individual and compares it with the database which
contains biometric of all the student’s once a match is obtained the door will open.then passes
this data to the Arduino (ATmega328P) and students attendance gets marked and is displayed
on LCD display. Here the Arduino is the primary element which takes all the important
decisions.The Arduino is connected to two output devices one is the GSM (Global system
for mobile communication) which sends a text message (i.e., SMS) to the required mobile
phone.
     1.5 limitations
     An automated attendance system based on fingerprint using Arduino with SMS alert has
     several limitations. Here are some common limitations to consider:
•   Limited scalability: Arduino boards are generally designed for small-scale projects. If you
    want to implement this system for a large number of users, you may face limitations in terms
    of processing power, memory, and the number of fingerprint sensors that can be connected to
    a single Arduino board.
•   Processing speed: Arduino boards are not as powerful as dedicated computer systems, so the
    processing speed may be slower. This can lead to delays in fingerprint recognition and
    attendance recording, especially if you have a large number of users.
•   Limited fingerprint storage: Arduino boards typically have limited storage capacity for storing
    fingerprint templates. If you have a large number of users, you may need to consider external
    storage options or use additional Arduino boards to accommodate the data.
•   False acceptance/rejection rates: Fingerprint recognition systems can have false acceptance
    and rejection rates, depending on the quality of the fingerprint sensors used. Lower-cost
    fingerprint sensors may have higher rates of false acceptance or rejection, which can affect the
    accuracy of attendance recording.
•   Lack of real-time data synchronization: Arduino-based systems may not provide real-time data
    synchronization capabilities. This means that attendance data may not be immediately
    available for analysis or reporting purposes. You may need to manually synchronize the data
    with a central database or system.
•   Reliance on SMS: SMS alerts are commonly used for notifications in Arduino projects.
    However, SMS services can be costly, especially if you have a large number of users or
    frequently send messages. Additionally, SMS services may have limitations in terms of
    message length and delivery speed.
• Security concerns: Fingerprint-based systems are generally considered secure, but they are not
  foolproof. Biometric data, such as fingerprints, can potentially be stolen or replicated.
  Adequate measures should be taken to ensure the security of the fingerprint data and the system
  as a whole.
    1.6 Advantages
•   Students will be more regular in attending their classes since now no password or no attendance
    sheet signature is required, so no friend or any other student can make an attendance on behalf
    of      others       as      fingerprints      are      unique      for      every      student.
    Teachers do not need to waste their time approximately 15min of 1hour for taking attendance
    of students.
•   No need to maintain attendance sheet as the attendance are electronically stored in database.
•   The system helps the faculty to easily find out defaulters.
•   User may easily get attendance history of a particular student.
•   It saves time, cost, efforts and institute resources
    1.7 Disadvantages
•   The only disadvantage is that every class requires a fingerprint reader to access the system.
•   There is a lack of Flexibility to identify the person in case of cut or wound or when the
    fingerprints are smudged with dirt or grease.
•   Fingerprint sensors are sensitive,Which works in their favor if the fingers are clean.
•   These sensors are inefficient for the industries like Mining and construction.
•   Fingerprint Data can get stolen.
    1.8 Application
•   The system can be used for schools, colleges or universities for taking down the attendance
•   It can be implemented in firms, organized for attendance purpose
Organisation of Report
Chapter 3: Software Requirements This chapter gives us in-sight into the technical
details of our project such as the software requirementspecificationetc.
Chapter 2
2.1 Theoritical background
Hardware requirements
   Arduino Uno:
There are different types of fingerprint Sensors like Optical, Capacitive, Ultrasonic, thermal etc. In
this paper, we are using Optical Fingerprint Sensor Module. It is used to scan the fingerprint of the
user and save the image of the fingerprint in the memory.
GSN800A
 The GSM (Global System for Mobile Communications) is the most widely used digital
 mobile phone system today.
 SIM800 is a quad-band GSM/GPRS module that works on frequencies 850MHz GSM,
 900MHz EGSM, 1800MHz DCS, and 1900MHz PCS.
 Here we use this module to send sms/messages.
Servo motors or “servos”, as they are known, are electronic devices and rotary or linear actuators
that rotate and push parts of a machine with precision.It is also known as Controlled motor.Here it
enables you to remotely lock and unlock the door.
Buzzer:
Here are the key features and components of the Arduino IDE software:
1.Code Editor: The IDE includes a code editor where you can write and edit your Arduino code. It
provides syntax highlighting, auto-indentation, and code completion to assist you in writing code
efficiently. The editor supports the Arduino programming language, which is a simplified version
of C++.
 Verification and Compilation: The Arduino IDE has a built-in compiler that translates your
Arduino code into machine-readable instructions. Before uploading the code to the Arduino board,
you can verify and compile it within the IDE to check for any syntax errors or compilation issues.
2. Library Manager: The Arduino IDE features a library manager that allows you to easily add and
manage libraries for various sensors, modules, and components. It provides access to a vast
collection of pre-built libraries that contain functions and examples for interacting with specific
hardware components.
3.Board Manager: The board manager enables you to install and manage different Arduino board
platforms. It provides an interface to select the appropriate Arduino board model and configure the
IDE settings accordingly. This allows you to target specific Arduino boards and take advantage of
their capabilities.
4.Serial Monitor: The IDE includes a built-in serial monitor tool that allows bidirectional
communication between your computer and the Arduino board via the serial port. You can use it to
send and receive data, monitor sensor readings, debug code, and receive feedback from the Arduino
board.
 Upload and Flashing: Once your code is ready, the Arduino IDE facilitates the uploading of the
compiled binary file to the Arduino board. It supports various upload methods, including USB,
serial, and network-based protocols, depending on the Arduino board and connectivity options.
4. Examples and Tutorials: The Arduino IDE comes with a collection of example codes and
tutorials that cover a wide range of Arduino functionalities and components. These examples
provide a starting point for beginners and help them understand how to interact with different
sensors, actuators, and modules.
The Arduino IDE software is available for Windows, macOS, and Linux operating systems. It can
be downloaded from the official Arduino website (https://www.arduino.cc/en/software) free of
charge. The IDE's simplicity and user-friendly interface make it accessible to beginners and
hobbyists, while still offering advanced features for more experienced users.
Chapter 3
Design implementation
Block daigram
Chapter 4
Chapter 5
Conclusion
     The main purpose of this project is to monitor the student attendance in lecture, tutorial and laboratory
sessions in more efficient way and send this attendance to their parents. This system resists students from
bunking classes through SMS sending feature to mobile .Biometrics has been used effectively for more than
a decade for time and attendance system.Fingerprint attendance system is a cost effective simplified system
that uses fingerprints for identification.
Future scope
  When student is regularly absent within four day or six days, a free voice call is generated to call the
parents mobile number by using GSM technology.For developing a multiple face detection and recognition
device as a replacement of the fingerprint reader for easy login and logout transaction in the system.
References
[1] Author:Venkatesh Seerapu. Title:Fingerprint Identification Based Attendence System with SMS
Notification Volume 10 5 May 2022
[2] Author:Khin San Myint, Mya Mya Nyein. Title:Fingerprint Based Attendence System Using Arduino
Volume 8 Issue 7 July 2018
[3] Author:Ayush Mahajan. Title:Attendance system based on Fingerprint Using Arduino Volume 6 Issue 6
June 2019
#include <Adafruit_Fingerprint.h>
#if (defined(__AVR__) || defined(ESP8266)) && !defined(__AVR_ATmega2560__)
// For UNO and others without hardware serial, we must use software serial...
// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino (WHITE wire)
// Set up the serial port to use softwareserial..
SoftwareSerial mySerial(A1, A0);
#else
// On Leonardo/M0/etc, others with hardware serial, use hardware serial!
// #0 is green wire, #1 is white
#define mySerial Serial1
#endif
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
uint8_t id;
void setup()
{
  Serial.begin(9600);
  while (!Serial); // For Yun/Leo/Micro/Zero/...
  delay(100);
  Serial.println("\n\nAdafruit Fingerprint sensor enrollment");
    if (finger.verifyPassword()) {
      Serial.println("Found fingerprint sensor!");
    } else {
      Serial.println("Did not find fingerprint sensor :(");
      while (1) { delay(1); }
    }
uint8_t readnumber(void) {
  uint8_t num = 0;
    while (num == 0) {
      while (! Serial.available());
      num = Serial.parseInt();
    }
    return num;
}
    while (!   getFingerprintEnroll() );
}
uint8_t getFingerprintEnroll() {
    int p = -1;
    Serial.print("Waiting for valid finger to enroll as #"); Serial.println(id);
    while (p != FINGERPRINT_OK) {
      p = finger.getImage();
      switch (p) {
      case FINGERPRINT_OK:
        Serial.println("Image taken");
        break;
      case FINGERPRINT_NOFINGER:
        Serial.println(".");
        break;
      case FINGERPRINT_PACKETRECIEVEERR:
        Serial.println("Communication error");
        break;
      case FINGERPRINT_IMAGEFAIL:
        Serial.println("Imaging error");
        break;
      default:
        Serial.println("Unknown error");
        break;
      }
    }
// OK success!
    p = finger.image2Tz(1);
    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;
    Dept Of ECE,PESITM, SHIVAMOGGA
Automated attendance system based on fingerprint with SMS alert                         2022-2023
}
Serial.println("Remove finger");
delay(2000);
p = 0;
while (p != FINGERPRINT_NOFINGER) {
  p = finger.getImage();
}
Serial.print("ID "); Serial.println(id);
p = -1;
Serial.println("Place same finger again");
while (p != FINGERPRINT_OK) {
  p = finger.getImage();
  switch (p) {
  case FINGERPRINT_OK:
    Serial.println("Image taken");
    break;
  case FINGERPRINT_NOFINGER:
    Serial.print(".");
    break;
  case FINGERPRINT_PACKETRECIEVEERR:
    Serial.println("Communication error");
    break;
  case FINGERPRINT_IMAGEFAIL:
    Serial.println("Imaging error");
    break;
  default:
    Serial.println("Unknown error");
    break;
  }
}
// OK success!
p = finger.image2Tz(2);
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!
Serial.print("Creating model for #");                             Serial.println(id);
p = finger.createModel();
Dept Of ECE,PESITM, SHIVAMOGGA
    Automated attendance system based on fingerprint with SMS alert     2022-2023
    if (p == FINGERPRINT_OK) {
      Serial.println("Prints matched!");
    } else if (p == FINGERPRINT_PACKETRECIEVEERR) {
      Serial.println("Communication error");
      return p;
    } else if (p == FINGERPRINT_ENROLLMISMATCH) {
      Serial.println("Fingerprints did not match");
      return p;
    } else {
      Serial.println("Unknown error");
      return p;
    }
    return true;
}
#include <Adafruit_Fingerprint.h>
#include<LiquidCrystal.h>
#include <Servo.h>
#include<SoftwareSerial.h>
SoftwareSerial mySerialgsm(A4,A5);
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0;    // variable to store the servo position
const int rs = 2, en = 3, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
#if (defined(__AVR__) || defined(ESP8266)) && !defined(__AVR_ATmega2560__)
// For UNO and others without hardware serial, we must use software serial...
// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino (WHITE wire)
// Set up the serial port to use softwareserial..
SoftwareSerial mySerial(A1, A0);
#else
// On Leonardo/M0/etc, others with hardware serial, use hardware serial!
// #0 is green wire, #1 is white
#define mySerial Serial1
#endif
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial);
void gate(){
    Dept Of ECE,PESITM, SHIVAMOGGA
  Automated attendance system based on fingerprint with SMS alert                             2022-2023
  for (pos = 0; pos <= 150; pos += 1) { // goes from 0 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);                                   // tell servo to go to position in variable 'pos'
    delay(15);                                            // waits 15 ms for the servo to reach the position
  }
  delay(1500);
  for (pos = 150; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
    myservo.write(pos);                                   // tell servo to go to position in variable 'pos'
    delay(15);                                            // waits 15 ms for the servo to reach the position
  }
  }
  int buzz=8;
void setup()
{
  pinMode(buzz,OUTPUT);
  mySerialgsm.begin(9600);
  msg2();
  Serial.begin(9600);
  while (!Serial); // For Yun/Leo/Micro/Zero/...
  delay(100);
  Serial.println("\n\nAdafruit finger detect test");
  lcd.begin(16, 2);
 lcd.clear();
  // Print a message to the LCD.
  lcd.print("Attendance taken");
  lcd.setCursor(0,1);
  lcd.print("Message Sending");
  msg2();
  fid=0;
    }
    if(fid==4 && asa==1){
  lcd.begin(16, 2);
 lcd.clear();
  // Print a message to the LCD.
  lcd.print("Attendance taken");
  lcd.setCursor(0,1);
  lcd.print("already");
  delay(1500);
  asa==1;
  fid=0;
    }
  lcd.begin(16, 2);
 lcd.clear();
  // Print a message to the LCD.
  lcd.print("Waiting For");
  lcd.setCursor(0,1);
  lcd.print("Fingers");
  delay(1500);
uint8_t getFingerprintID() {
  uint8_t p = finger.getImage();
  switch (p) {
    case FINGERPRINT_OK:
      Serial.println("Image taken");
      break;
    Dept Of ECE,PESITM, SHIVAMOGGA
    Automated attendance system based on fingerprint with SMS alert       2022-2023
        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.fingerSearch();
    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);
    return finger.fingerID;
}
  p = finger.image2Tz();
  if (p != FINGERPRINT_OK)                 return -1;
  p = finger.fingerFastSearch();
  if (p != FINGERPRINT_OK) return -1;
  // found a match!
  Serial.print("Found ID #"); Serial.print(finger.fingerID);
  Serial.print(" with confidence of "); Serial.println(finger.confidence);
  return finger.fingerID;
}
void msg2(){
  mySerialgsm.println("AT+CMGF=1");    //Because we want to send the SMS in text mode
   delay(2000);
   mySerialgsm.println("AT+CMGS=\"8904294135\""); // change to the phone number you
using
   delay(2000);
   mySerialgsm.print("Attendance Taken for id : "+String(fid));//the content of the
message
   delay(2000);
         mySerialgsm.write(0x1A);
         delay(2000);
Personal Profile
         Prof. Name
        Project Guide