Thanks for the reply alokdaga
I dont think there is an error in code because if i use fingerprint module code only in uC then it works perfectly fine and when i use my whole project code involving fingerprint code then iw works for intial 3 or 4 scans including the enrolling and storing function,searching function but after that it exhausts the blue led continuously glows and it is unable to detect finger..
Just tell me one thing i am using polling method for UART instead of interrupt.Is it fine??