A device (110) is proposed for detecting at least one analyte in a bodilyfluid. The device(110) comprises at least one test element (120) with at least one two-dimensionalevaluation region (136). The device (110) furthermore comprises at least onespatially resolvingoptical detector (138) having a plurality of pixels (146). The detector (138)is designed toimage at least part of the test element (120) onto an image region (148). Inthe process, atleast part of the evaluation region (136) is imaged onto an evaluation imageregion (150).The detector (138) is matched to the test element (120) such that apredeterminedminimum number of pixels (146) is provided for each dimension within theevaluation imageregion (150). The pixels (146) are arranged in a two-dimensional matrixarrangement. Thematrix arrangement has pixel rows (158) and pixel columns (160), wherein thepixel rows(158) are arranged substantially parallel to a longitudinal direction of theevaluation region(136) and/or of the evaluation image region (150).