you can try opening the compass app and the slide to the right to use the "level". You can set your iphone on it's side to use it as a level when measuring something. Rotate your phone on all 4 sides until the level says 0 degrees and that should fix your problem