That is an industrial ultrasonic sensor made by Baumer.
It runs on 24V (or something like 18-30V) and gives 0-10V output.
Don't remember range. As for comparator, just get the datasheet
like this one:
**broken link removed**
but... why not use sensor with digital output? then you won't need the comparator since it's already built into the sensor.
I know that in the market there is already made but I was doing my final year project, I was given this sensor and asked to come out with a circuit and program to control it. Thank for your email ...