This is the scheamtic made with the Arduino mega. make sure you use the pins in the schematic below for the fingerprint module since not all Arduino MEGAs pins could create an interrupt. Read the comments below and the comments in the code of this project. Make sure to install all the needed libraries.