This article presents a program for controlling a model built with a Fischer construction kit by means of which it is possible to measure workpieces contactlessly and sort them. The author's explanations focus on the interaction of hardware and software. This is particularly useful for a novice wishing to understand how such a system works.