Question: how do npn sensors work?
Answer: From a practical standpoint, NPN transistors (sometimes called "sinking sensors") amplify a positive signal applied to the base by allowing a larger current to flow from the collector to emitter pins of the device, proportional to the base voltage.