Detecting movement by Android sensors and applying the movement to BP FirstPersonCharacter

I want to make a game
that when the player physically moves with his tablet, the sensor will detect the movement
and will define a displacement for the player according to the physical displacement
Hope that is clear enough
Thanks in advance.