processing costum controller input

Hi

This is more of a basic question, I hope posting it on here is okay.

So let’s say I wanted to make a custom (i.e. motion) controller by using a raspberry pi. How would I get the data processed into my ue4 project? Is that even possible with just the help of blueprints? What are the requirements?

Let’s say I just have a boolean that is checked by the raspberry pi if a particular sensor is triggered. How do I get that information into my ue4 project? Would this be a huge/difficult undertaking or does ue4 have an inbuilt solution for these kind of things?