samsung note-2 screen rotation not working


i have samsung note-2 with rotation problem.
when open images its not rotate,
i try to replace sensor but still same problem 🙁
pls tell me next what to do ?