Lcd pin

Hi I have a piece of code but not sure what pins to connect it to on the arduino mega.
I will attach the ino file
Thanks :smiley:

DOOR_UNLOCK.ino (7.11 KB)

That's a lot of code for very little information provided. First of all, you don't connect code to pins - that happens by itself. You do connect other things to pins and from the title it sounds like you have an LCD display. Is that the problem? The code also seems to reference keypads, servos and a fingerprint scanner so perhaps a bit more information on what you are trying to do, what your current problem is and a circuit diagram and/or photo of how you think it needs to be wired up.

If you haven't actually started this project yet and are having trouble, then get each component working on its own before trying to integrate them all together.

Hi
Sorry small typo what mean was what pins should I connect the 16×2 lcd to as I tried it and Im not sure what pins to connect it to.
Thanks

(deleted)

Thanks for the reply ill try it tommorow and tell u what happens. I cant ask the author because it was afriend who wrote it for me and i can no longer contact him. The code is a door look basically ther is an lcd keypad and fingerprint which move a servo which opens a lock.

Thanks