finger sensor coding

hey there. I'm a bit of a newbie to arduino and im trying to tackle a finger sensor project. im using a code from an instructable that i found. im trying to modify it so that it works somewhat similar to a smart phone where you have x amount of attempts to use the finger (in my case three) and then you have to use a pass code afterwards to try and unlock it if you get the attempts wrong. im having an issue somewhere in my loop i think but im not sure where the issue could be. if you guys could check the code to see where im going wrong thatd be amazing!! thanks.

P.S. the first attachment is the original code, the second is my modifications.

CAPSTONE2020.ino (9.39 KB)

tst_V5.ino (19.2 KB)

30k of code and not even a clue of what exactly goes wrong... Don't be surprised to not get answers.

Strip it down to produce a minimal sketch that still shows the problem. If you haven't discovered the problem yourself by doing this, feel free to post it (inline, using code tags - if it doesn't fit it's quite certainly not a minimal example) with a clear and concise description of what it does and how it is different from what you want it to do.

Your RF24 module uses SPI.

The SPI pins for a mega are 50-53

The lcd is also using those pins which is not good.