The Shipping Lock is built from the Lego Wedo 2.0 educational kit. The sluice gate lifting system is driven by a combination of worm and belt drive. The appearance of the ship in front of the gate registers a distance sensor.
The set includes step-by-step building instructions and an example of program (in Lego Wedo 2.0 environment).