SENSING MOVEMENT FROM ROTATION

Can anyone help me with this sketch please.

No, because we haven't seen it. Don't forget to use the code tags (# button in the editor) when posting it.