An optoelectronic sensor configured to detect a presence of an object in a predetermined detection area through reflection of at least one light beam from said object (10), the optoelectronic sensor (1) comprising:
- a light source adapted to emit the at least one light beam with a predetermined orientation;
- a first photodiode configured to generate a first electric current as a function of a first luminous flux on the first photodiode;
- a second photodiode configured to generate a second electric current as a function of a second luminous flux on the second photodiode;
- a position of the first (3a) and second (3b) photodiodes is determined such that a difference between the first luminous flux received by the first photodiode and the second luminous flux received by the second photodiode is positive when the light beam is reflected by the object positioned in the predetermined detection area;
- a converter stage configured to convert the first and second electric currents and into first and second voltages;
- a subtractor stage configured to generate an output voltage by subtracting the second voltage from the first voltage (va);
- a summing stage configured to generate an output voltage by adding the first voltage to the second voltage;
- wherein the optoelectronic sensor furthermore comprises a controlled inverter stage and an integrator stage, the controlled inverter stage comprising:
- a first controlled inverter connected to the subtractor stage and configured to invert the output voltage of the subtractor stage during time intervals between the emission of two consecutive light beams of the time sequence of light beams;
- a second controlled inverter connected to the summing stage and configured to invert the output voltage of the summing stage during the time intervals between the emission of two consecutive light beams of the time sequence of light beams;
- the integrator stage comprising:
- a first integrator connected to the first controlled inverter and configured to integrate the output voltage of the subtractor stage, partially inverted by the first controlled inverter stage, so as to obtain a detection signal of the subtractor;
- and
- a second integrator connected to the second controlled inverter and configured to integrate the output voltage of the summing stage, partially inverted by the second controlled inverter stage, so as to obtain a detection signal of the summer;
- and
- wherein the optoelectronic sensor is configured to detect an object in the predetermined detection area when:
- a) the detection signal of the subtractor is positive, and
- b) the detection signal of the summer is greater than a determined second voltage threshold.