PNP Sensor wiring
NPN Sensor wiring
This wiring will get inverted value.
MSB Series