Input output interfacing

Nice, your sensor will work fine with 12V suppy, but connect the wire + to 12V and wire - to resistor, in your figure is invert..