Finger print sensor.

Why is that important? What, EXACTLY, do you get when you scan a fingerprint?

when I scan a finger I get its ID which is an integer given that it was initially enrolled with that ID ( I provided an example of the ID's I enroled because a finger scaned needs to correspond to what was enrolled for it to be useful).

You write the rest.

if I knew how to write the rest I won't be posting the problem. If you really want to help me please do or ask exactly what you need for the rest of the code.
Thanks