This is a rotation sensor. The rotation sensor measures the rotation of an axle. As the axle turns, the rotation sensor counts how much the axle rotates. There are 16 counts in 1 complete revolution of the axle. The number of counts is what the RCX reads as input.

When the axle stops rotating, the rotation sensor stops counting. If the axle starts to rotate again, the rotation sensor begins counting where it left off. If the axle rotates in the opposite direction, the rotation sensor counts backward.

It is important to reset the rotation sensor at the start of your program.

Click here to learn how to program a rotation sensor