Decode/Encode payload Wisnode bridge rak7434

Hello guys,
I have an end node proximity sensor that checks metal objects connected to the rak7434 bridge, and it has the following payload:
“decoded_payload”: {
“bytes”: [
1,
2,
0,
0,
2,
2,
0,
2
]
},
how to decode it? And how can every time the sensor comes into contact with a metal object, it will automatically send the payload to the TTN?

Hello,

What is the device connected to the RAK7434? I suppose this is 1:200mv and 2:202mv, but no way to say for sure before I know what is the device connected to the RAK7434. Also, it is a bridge, it will air in LoRaWAN everything that the sensor reports.

Regards

it’s Proximity sensor LJ12A3-4-Z/BX 4mm NPN-NO 6-36VDC