An optical proximity sensor with crosstalk compensation, comprising: - a transmitting circuit to transmit a signal to be reflected at a target and a disturbing object, - a receiving circuit to receive a reflected signal having a useful component and a noise component, the useful component caused by the reflection of the signal at the target, the noise component caused by the reflection of the signal at the disturbing object, the receiving circuit comprising an output node to provide an output signal (Vout2) in dependence on the distance of the proximity sensor from the target, - wherein the receiving circuit comprises a detection circuit to detect the reflected signal and to generate a photo current (IPHOTO) in dependence on the reflected signal, - wherein the receiving circuit comprises an evaluation circuit having an input side to receive the photo current (IPHOTO) and an output side to generate an evaluation signal (Vout1) in dependence on the photo current (IPHOTO), - wherein the receiving circuit comprises a signal node to apply the evaluation signal (Vout1) being generated by the evaluation circuit of the receiving circuit in dependence on the reflected signal, - wherein the receiving circuit comprises a crosstalk compensation circuit to generate the output signal (Vout2), the crosstalk compensation circuit being coupled to the signal node, - wherein the crosstalk compensation circuit comprises a first charging circuit being configured to provide a first charge for coarse crosstalk compensation, and a second charging circuit being configured to provide a second charge for fine crosstalk compensation, wherein the first and the second charge are applied to the signal node, and the amount of the first charge is provided higher than the amount of the second charge, - a control circuit to control the first and the second charging circuit (110, 120) to set an amount of the first and the second charge so that the output signal (Vout2) of the crosstalk compensation circuit is dependent on the useful component and independent on the noise component of the reflected signal. - a transmitting circuit to transmit a signal to be reflected at a target and a disturbing object, - a receiving circuit to receive a reflected signal having a useful component and a noise component, the useful component caused by the reflection of the signal at the target, the noise component caused by the reflection of the signal at the disturbing object, the receiving circuit comprising an output node to provide an output signal (Vout2) in dependence on the distance of the proximity sensor from the target, - wherein the receiving circuit comprises a detection circuit to detect the reflected signal and to generate a photo current (IPHOTO) in dependence on the reflected signal, - wherein the receiving circuit comprises an evaluation circuit having an input side to receive the photo current (IPHOTO) and an output side to generate an evaluation signal (Vout1) in dependence on the photo current (IPHOTO), - wherein the receiving circuit comprises a signal node to apply the evaluation signal (Vout1) being generated by the evaluation circuit of the receiving circuit in dependence on the reflected signal, - wherein the receiving circuit comprises a crosstalk compensation circuit to generate the output signal (Vout2), the crosstalk compensation circuit being coupled to the signal node, - wherein the crosstalk compensation circuit comprises a first charging circuit being configured to provide a first charge for coarse crosstalk compensation, and a second charging circuit being configured to provide a second charge for fine crosstalk compensation, wherein the first and the second charge are applied to the signal node, and the amount of the first charge is provided higher than the amount of the second charge, - a control circuit to control the first and the second charging circuit (110, 120) to set an amount of the first and the second charge so that the output signal (Vout2) of the crosstalk compensation circuit is dependent on the useful component and independent on the noise component of the reflected signal.