Code to handle rotation sensing