Improve Rotary Angle Sensor example