Proper operation of a sensor requires the consideration of various points during installation and commissioning. This includes the mounting and the power source.
Mounting a sensor involves a number of general steps, but may also require some steps that are specific to the sensor's housing design (cubic or cylindrical).
Physically, the basic circuits of a sensor can fundamentally be constructed with 2, 3, or 4 wires. Some basic information needs to be considered when interconnecting these sensors.
Take a look at the range of Pepperl+Fuchs inductive sensors.