This project needs 3 main components that are Arduino Uno, fingerprint sensor, solenoid lock.

The fingerprint sensor has 4 wires the red wire is to be connected to 5V supply in Arduino, black wire with a ground pin, yellow wire which is RX is to be connected to pin 2 and blue wire tx should be connected to pin 3

Now take the transistor and solder the middle leg of the transistor with a negative wire of solenoid lock, 1st and 3rd leg of the transistor should be connected to pin 12 and ground respectively.
The positive wire of the solenoid lock must be soldered at the adaptor port in Arduino Uno and the 12v adaptor is to connect to the port.
Upload the code and you are done