Pi Zero interacting with Unreal?

I was wondering if there was a way I can use my Raspberry Pi Zero to interact with Unreal engine.

Like if I wanted to set the Pi Zero up as a controller or RFID / NFC reader, how would I get that to interact with unreal engine?