The rotation sensor measures wheel rotation and can be used to calculate distance traveled. It has 16 counts per wheel revolution. The diameter and circumference of a wheel are related by the formula Circumference = π x Diameter. Knowing the circumference, diameter, and counts per revolution allows calculating the distance traveled per sensor count. Several examples are provided to demonstrate calculating circumference, distance per count, and number of counts to travel a given distance.