# Rotation Sensor Measurement

**URL:** https://forum.makecode.com/t/rotation-sensor-measurement/3811
**Category:** EV3
**Created:** [October 8, 2020, 1:47am UTC](https://forum.makecode.com/t/rotation-sensor-measurement/3811 "2020-10-08T01:47:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![acslego](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@acslego](https://forum.makecode.com/u/acslego)
#### Post date: [October 8, 2020, 1:47am UTC](https://forum.makecode.com/t/rotation-sensor-measurement/3811/1 "2020-10-08T01:47:06Z")

</div>

How do you measure the number of rotations within a “While” loop logic?

For example, I’d like to follow a line for “15” inches, which requires access to the rotation sensor. We can access an “angle” reading, but not a cumulative “rotation” reading from the time the sensor is reset. Do we need to create our own measurement blocks based the “angle” sensor to measure “rotations”? Or will MakeCode introduce a “rotation” sensor block?
