A device for measuring image data from which biometric data can be determined, having - a biometric sensor system having a sensor device in which a flat arrangement of optical elements is arranged in front of a sensor surface, and - a processing device which is connected to the sensor device and is configured to receive sensor signals detected by the sensor device and to generate image data therefrom, from which image data biometric data for identifying at least one person can be determined; the processing device further being configured - to receive first sensor signals and to generate first image data therefrom, from which first image data first biometric data for a first biometric feature can be determined, the first sensor signals being detectable for a first body section which is arranged at a focal distance in front of the flat arrangement of optical elements or adjacent to the focal distance; and - to receive second sensor signals and to generate second image data therefrom, from which second image data second biometric data for a second biometric feature can be determined, the second sensor signals being detectable for a second body section which is arranged at a non-focal distance in front of the arrangement of optical elements, which non-focal distance is shorter than the focal distance, or is arranged to rest on the flat arrangement, and the sensor device being configured to detect the second sensor signals through the flat arrangement of optical elements, which second sensor signals display an overall image of the second body section, as a result of which, detection of the second image data takes place for an out-of-focus image. - a biometric sensor system having a sensor device in which a flat arrangement of optical elements is arranged in front of a sensor surface, and - a processing device which is connected to the sensor device and is configured to receive sensor signals detected by the sensor device and to generate image data therefrom, from which image data biometric data for identifying at least one person can be determined; the processing device further being configured - to receive first sensor signals and to generate first image data therefrom, from which first image data first biometric data for a first biometric feature can be determined, the first sensor signals being detectable for a first body section which is arranged at a focal distance in front of the flat arrangement of optical elements or adjacent to the focal distance; and - to receive second sensor signals and to generate second image data therefrom, from which second image data second biometric data for a second biometric feature can be determined, the second sensor signals being detectable for a second body section which is arranged at a non-focal distance in front of the arrangement of optical elements, which non-focal distance is shorter than the focal distance, or is arranged to rest on the flat arrangement, and the sensor device being configured to detect the second sensor signals through the flat arrangement of optical elements, which second sensor signals display an overall image of the second body section, as a result of which, detection of the second image data takes place for an out-of-focus image.