How do I get the G-Sensor functioning in BP? PLEASE HELP!

Ok so basically I am trying to make it so when I rotate my device, the floor which is a Pawn moves along with it. However everywhere I have looked either has no information on how to do it, or their methods just do not work. I really need to get this working as its for a project I am doing but everything I am trying does not work. There are no video guides on this either which is suprising.