An optical sensor arrangement comprising - an integrator with an integrator input and an integrator output; - a photodiode for providing a current corresponding to a first polarity; - a comparator with a comparator input coupled to the integrator output, the comparator being configured to compare a voltage at the comparator input with a threshold value for providing a comparison output; - a reference charge circuit that is coupled to the integrator input for selectively providing first charge packages of a first size or second charge packages of a second size, wherein the first charge packages correspond to a second polarity being opposite of the first polarity and the second charge packages correspond to the first polarity; and - a control unit that is configured - to, during a calibration phase, control the reference charge circuit to provide one of the first charge packages to the integrator input and to provide one or more of the second charge packages to the integrator input until the comparison output changes, and to determine a reference number corresponding to a number of the second charge packages provided; - to, during an integration phase, connect the photodiode to the integrator input, to control the reference charge circuit to provide one of the first charge packages to the integrator input in response to a respective change of the comparison output and to determine an integration number corresponding to a number of said changes of the comparison output; - to, during a residual measurement phase that immediately follows the integration phase control the reference charge circuit to provide one or more of the second charge packages to the integrator input until the comparison output changes, and to determine a residual number corresponding to a number of the second charge packages provided; and - to provide a total integration value based on the integration number and a ratio of the residual number and the reference number. - an integrator with an integrator input and an integrator output; - a photodiode for providing a current corresponding to a first polarity; - a comparator with a comparator input coupled to the integrator output, the comparator being configured to compare a voltage at the comparator input with a threshold value for providing a comparison output; - a reference charge circuit that is coupled to the integrator input for selectively providing first charge packages of a first size or second charge packages of a second size, wherein the first charge packages correspond to a second polarity being opposite of the first polarity and the second charge packages correspond to the first polarity; and - a control unit that is configured - to, during a calibration phase, control the reference charge circuit to provide one of the first charge packages to the integrator input and to provide one or more of the second charge packages to the integrator input until the comparison output changes, and to determine a reference number corresponding to a number of the second charge packages provided; - to, during an integration phase, connect the photodiode to the integrator input, to control the reference charge circuit to provide one of the first charge packages to the integrator input in response to a respective change of the comparison output and to determine an integration number corresponding to a number of said changes of the comparison output; - to, during a residual measurement phase that immediately follows the integration phase control the reference charge circuit to provide one or more of the second charge packages to the integrator input until the comparison output changes, and to determine a residual number corresponding to a number of the second charge packages provided; and - to provide a total integration value based on the integration number and a ratio of the residual number and the reference number. - to, during a calibration phase, control the reference charge circuit to provide one of the first charge packages to the integrator input and to provide one or more of the second charge packages to the integrator input until the comparison output changes, and to determine a reference number corresponding to a number of the second charge packages provided; - to, during an integration phase, connect the photodiode to the integrator input, to control the reference charge circuit to provide one of the first charge packages to the integrator input in response to a respective change of the comparison output and to determine an integration number corresponding to a number of said changes of the comparison output; - to, during a residual measurement phase that immediately follows the integration phase control the reference charge circuit to provide one or more of the second charge packages to the integrator input until the comparison output changes, and to determine a residual number corresponding to a number of the second charge packages provided; and - to provide a total integration value based on the integration number and a ratio of the residual number and the reference number.