How to use Get Input Motion State to "Look around"

Can you post solution? I am trying to create it on my own but it isnt working really well… I only have working camera movement for moving phone up/down. Left and right is the problem, I dont know from where to read data about left/right phone movement… Apk you posted requires lots of permission, so not really sure should I install it :S