1. Capture the existing sensor and wiring
Photograph the complete part number, housing, sensing face, mounting, connector or cable, wire colors, target, bracket, and PLC or input wiring. Record whether the machine expects PNP or NPN and normally-open, normally-closed, or complementary behavior.