How to distinguish the type of induction sensor: pnp or npn?
How to determine the pnp or npn induction sensor in a wiring diagram?

We recommend reading:
How to conduct electrical wiring in an apartment - all stages of electrical installation