The tinkerforge code (Java) for a sorting machine.