The Ferris Wheel is built from the Lego Spike Prime educational kit. The rotation of the Ferris Wheel is set by pressing the force sensor. During rotation the distance sensor fixates cases when the cabin passes by. You can show quantity of rotations in the Led Matrix of Hub.
The set includes step-by-step building instruction and an example of program (in Spike environment).