According to one example embodiment, there is provided an optical sensor device (110) for determining at least one characteristic of a surface of an object (180) positioned within a measurement range, the sensor device (100) comprising: an illumination
assembly (120), the illumination
assembly comprises one or more light sources (121, 121-k) arranged to emit light through the light collection optical
assembly towards the measurement range, where the emitted light covers a predefined
wavelength range, and where the one or more light sources are arranged to form a respective one or more light emitting area pattern of a predefined lateral shape; a first optical assembly (140) arranged to longitudinally disperse the light emitted from the illumination assembly (120) such that light across the predefined
wavelength range in each of the one or more light emitting area patterns is focused at a respective
focal length range, the
focal length range forms a corresponding candidate distance sub-range in the measurement range; a
beam splitter (130) arranged to transmit the light emitted from the illumination assembly (120) towards the first optical assembly (140) and to fold light received through the first optical assembly (140) reflected from the surface of the object (180); a second optical assembly (150) arranged to receive the folded light across the predefined
wavelength range to laterally disperse the received light across the predefined
wavelength range and focus the light at a predefined distance across the predefined
wavelength range; a light sensor assembly (160) having a
sensor plane arranged at the predefined distance to receive laterally dispersed light across the predefined
wavelength range, such that the light originating from the one or more light-emitting area patterns is received at respective one or more corresponding position sub-ranges along an axis (y ') on the
sensor plane; and a
detector assembly (170) arranged to determine the at least one characteristic of the surface of the object (180) based on the laterally dispersed light received across the one or more position subranges along the axis (y ') on the
sensor plane.