What settings are required to use an Android sensor as an input?

I want to use android sensor to control player. I saw many blueprint about this, but I even don’t know how to connect android with unreal project. USB? or TCP? or Project Settings engine input? I need help about this. Thank you for explaining what settings are required.