R305 fingerprint sensor module

I am getting error in enrolling fingerprint, deleting as well as viewing fingerprint templates through arduino. I am unable to create models while enrolling fingerprints. It gives 80H error. While deleting fingerprints also I get error. I got FFh error code. While viewing fingerprint templates, I get the error code, 0Ch.
Do I need to replace the fingerprint Sensor or there are any methods to solve this. I need to know the solution because i got the sensor against 45dollar. I need a solution for this.

Ok I finally got the solution myself. :stuck_out_tongue: All the error was due to use of latest IDE. At first I used the Arduino1.8.1 IDE and it was the root cause of error. I switched to Arduino 1.6.1 and all the errors were solved.