Fingerprint sensor causes lost of connection Arduino->PC

Hello.
I recently bought this fingerprint sensor https://www.amazon.it/Lettore-impronte-digitali-lettore-Mega2560/dp/B07H56V1VN/ref=mp_s_a_1_2?crid=10G34L6KMXHQI&keywords=fingerprint+sensor+arduino&qid=1555272347&s=gateway&sprefix=fingerprint+sen&sr=8-2 but I'm having trouble.
I'm following this tutorial:
https://randomnerdtutorials.com/fingerprint-sensor-module-with-arduino/ so I downloaded the library and I'm trying to use the example like said in the tutorial.
The problem is that the Arduino loses connection with the PC when I try to run the code.
What do I have to do?

Also the sensor heats a bit
Thanks

Sounds like you connected it wrong, causing over current & your USB port to disconnect to prevent it from damage.

I connected it like the tutorial tells to do, and the sensor works for 1-2 minutes before getting disconnected from the pc