An optical sensor device which measures in a spatially resolving manner is disclosed. In order to devise such a sensor device with which a contacting measurement of the article to be measured can be carried out and which can be mass-produced, the sensor device is designed such that a transfer of the calibration onto individual sensor devices is possible with high accuracy. According to certain embodiments of the design of the sensor device and of the evaluation methods, interferences with the measurement of the amount of the target substance are minimized