This documentation is for fingerprint R308 sensor module
Pin No. Description Remarks
6 finger detect power + 3.6-5V
5 finger detection signal output high active
4 Power + Power Positive
3 module sends TX
2 module receives RX
1 power - power negative
sample code can be search at google