A device is proposed for detecting at least one analyte in a bodily fluid. The device comprises at least one test element with at least one two-dimensional evaluation region. The device furthermore comprises at least one spatially resolving optical detector having a plurality of pixels. The detector is designed to image at least part of the test element onto an image region. In the process, at least part of the evaluation region is imaged onto an evaluation image region. The detector is matched to the test element such that a predetermined minimum number of pixels is provided for each dimension within the evaluation image region. The pixels are arranged in a two-dimensional matrix arrangement. The matrix arrangement has pixel rows and pixel columns, wherein the pixel rows are arranged substantially parallel to a longitudinal direction of the evaluation region and/or of the evaluation image region.