Level shifting 5V signal to 3.3V using voltage divider where source has 10k resistor to ground
The output stage of that sensor is configured as a comparator, so it will only be in either high or low state. That is, no intermediate voltages.

According to the opamp spec, Voh = Vcc-2V. Since you are driving it with 5V Vcc, your voltages should already be in range of your 3.3V logic.

If it is not you could use a suitable divider, or you can always do it this way.







simulate this circuit &ndash; Schematic created using CircuitLab