Problem w/ GT-511C1R fingerprint sensor becoming too hot and not functioning

I am creating a school project involving the GT-511C1R fingerprint sensor from ADH tech to an Arduino UNO and at the moment whenever I try to supply it with power it gets very hot and does not work.

I had programmed it to enroll and also verify my fingerprints, and was working fine with code I gave. I was also using it with a lock-style solenoid to use a fingerprinting lock. All of these tests were working before the fingerprint scanner stopped functioning.

Both the power status LED and the backlight do not turn on although power is being supplied, as instead the device becomes very hot.

My connections directly to the Arduino are as follows:

-Pin 1 (Tx) -> Pin 10 (UNO)

-Pin 2 (Rx) -> Pin 11

-Pin 3 (GND) -> GND

-Pin 4 (Vin) -> 3.3V

The operating voltage for the FPS is 3.3V ~ 6V and communicates over TTL serial.

It was working at the first attempt, but it no longer functions. Any ideas?

I was also using it with a lock-style solenoid to use a fingerprinting lock.

Very likely, voltage spikes from the (improperly wired) solenoid got into the power supply and destroyed the sensor. They may have also damaged the Arduino.

Post a complete wiring diagram, including the solenoid, and be sure to show us how everything is powered. Post the code using code tags.

Follow the instructions in the "How to use this forum" post.