Es wird eine Steuereinheit (107) für einen Nahrungsmitteldrucker (100) beschrieben, der eingerichtet ist, Druckmasse (108, 208) aus einem Behälter (102) auf eine Ablagefläche (104) zu extrudieren, um ein Nahrungsmittel (105) zu drucken. Die Steuereinheit (107) ist eingerichtet, Spektraldaten bezüglich der Druckmasse (108, 208) in dem Behälter (102) zu ermitteln. Dabei hängen die Spektraldaten von einem Transmissionsgrad und/oder von einem Reflexionsgrad der Druckmasse (108, 208) für elektromagnetische Strahlung zumindest einer Wellenlänge (301) ab. Die Steuereinheit (107) ist weiter eingerichtet, den Nahrungsmitteldrucker (100) in Abhängigkeit von den Spektraldaten zu steuern. Die Erfindung betrifft auch einen Nahrungsmitteldrucker (100) mit einer solchen Steuereinheit (107) sowie ein Verfahren zum Steuerung eines solchen.A control unit controls a food printer configured to extrude printing compound from a container onto a tray in order to print a food. The control unit is configured to determine spectral data relating to the printing compound in the container. The spectral data is dependent on a transmission degree and/or on a reflection degree of the printing compound for electromagnetic radiation of at least one wavelength. The control unit is furthermore configured to control the food printer in dependence on the spectral data. A food printer having the control unit and a method for controlling the printer are also provided.L'invention concerne une unité de commande (107) pour une imprimante de produits alimentaires (100) conçue pour extruder une matière à imprimer (108, 208) contenue dans un réservoir (102) sur une surface de dépôt (104) afin d'imprimer un produit alimentaire (105). L'unité de commande (107) est conçue pour déterminer des données spectrales concernant la matière à imprimer (108, 208) contenue dans le réservoir (102). Les données spectrales dépendent de la transmittance et/ou de la réflectance de la matière à imprimer (108, 208) pour un rayonnem