Can unreal Engine Handle external event by other Sensors like heart rate sensor?

I have Project to do Game using physical Sensors and for that i was asking if Unreal Engine can read data from external Library such as Java Code or Sensor and Based on that perform an action during the game ??