I'm trying to connect a ZFM-60 fingerprint scanner (https://aliexpress.com/item/Free-Shipping-USB-Fingerprint-Sensor-Support-Android-Windows-System-Optical-Fingerprint-Reader-Sensor/32475559052.html?spm=a2g0s.9042311.0.0.WVL3G4) to my RPi 3B. I'm not using the USB-serial converter, because I read that 5V output is enough for this sensor.
I followed this tutorial (https://tutorials-raspberrypi.com/how-to-use-raspberry-pi-fingerprint-sensor-authentication/) to install a library and connect the sensor. Also looked at this question (Unable to integrate Fingerprint sensor in Raspberry Pi2) changing the tty-USB0 into tty-AMA0.
When I run one of the example Python scripts, nothing happens, and the console just shows a blank line until I stop executing the Python script.
The sensor is connected as follows
- Red -> 5 volt (pin 2)
- Black -> ground (pin 6)
- White -> TXD (pin 8)
- Green -> RXD (pin 10)
Also tried switching white and green, but no effect.
Any ideas on what I'm missing here?