The Fan is built from the Lego Wedo 2.0 educational kit. By regulating the position of the slider you can change values of the distance sensor and control the speed of the fan. There is double spur gear.
The set includes step-by-step building instruction and an example of program (in Lego Wedo 2.0 environment).