Professional Industrial Sensor Manufacturer
XSZ Sensor

Sensor Terminology

NPN Sensor

Meaning, Working Principle & Wiring

An NPN sensor uses a transistor output that provides a path toward 0 V when ON. This guide explains that current path, shows a typical connection to a compatible PLC input, and separates NPN/PNP output type from NO/NC switching behavior.

NPN sensor current path through a compatible sourcing PLC input when the output is on

What Is an NPN Sensor?

An NPN sensor is a sensor with an NPN transistor switching output. In a typical three-wire DC circuit, the output does not supply positive voltage to the external load. When it turns ON, current can flow from a positively supplied load or input into the sensor output and onward to 0 V. That is what sinking output means.

NPN describes the electrical output, not how the sensor detects a target. An inductive, capacitive or photoelectric sensor can have an NPN output. It also does not tell you whether that output is normally open (NO) or normally closed (NC).

Output Type

The NPN transistor closes a path toward 0 V when ON.

Sinking Output

Current enters the output from a compatible load or input.

Typical Use

Connection to a suitable DC controller input circuit.

How Does an NPN Sensor Work?

Think of the output as a switch on the 0 V side of an external input or load. When the transistor turns ON, the path closes and current flows from +V through that input or load into the output, then through the sensor toward 0 V. This is low-side switching, and the sensor is said to sink current.

For a typical three-wire NPN normally open (NO) sensor, no target leaves the output transistor OFF; detecting the specified target turns it ON. An ON output is pulled toward 0 V under load, but its residual voltage need not be exactly zero. In a typical open-collector circuit, the OFF output is open or high impedance; its measured voltage depends on the connected input or pull-up and is not automatically +24 V.

Keep the two questions separate: NPN describes where current flows when the output is ON. NO or NC describes when that transistor turns ON.

NPN Output Operation — ON State

Swipe to read the diagram →

NPN output on: current flows from positive supply through the input or load into the sensor and to zero volts

Typical NPN NO output state

Target conditionOutput transistorCurrent path
No targetOFFNo intentional sinking path; the external input circuit determines the output-node voltage.
Specified target detectedONCurrent can pass from +V through the compatible input or load to the sensor output and 0 V.

How to Wire an NPN Sensor to a PLC

The diagram is an illustrative three-wire DC NPN connection to a compatible PLC input that provides current to the sensor output. Brown (BN) powers the sensor from +V, blue (BU) returns it to 0 V, and black (BK) carries the switched output to a digital input. The exact wire or pin assignment must come from the sensor datasheet.

In the circuit shown, the PLC input group's COM+ is tied to +V. When the NPN output turns ON, current flows from COM+ through the input circuit to the black output and returns through the sensor to 0 V. Other modules may name or arrange the common differently; follow the PLC module's own diagram rather than assuming that every input marked “COM” connects to +V.

Swipe to read the diagram →

Three-wire NPN example: brown to positive 24 volts, black to a compatible PLC input, blue to zero volts
WireConnection in this exampleFunction
Brown (BN)+V DCSensor power +
Black (BK)PLC digital inputNPN output signal
Blue (BU)0 V DCSensor power −
Before connecting: isolate power and compare both manufacturers' wiring diagrams, supply limits, input ratings and required common/reference connection. This figure is not a universal terminal assignment or installation approval.

NPN vs PNP Sensors

Both terms describe the transistor output, not the sensing method. When ON, an NPN output provides a path toward 0 V for current supplied by an external load or input. A PNP output instead supplies current from the positive side through that load or input toward 0 V.

NPN Sensor (Sinking Output)

Swipe to read the diagram →

NPN sinking output with the load between positive supply and the sensor output
PNP Sensor (Sourcing Output)

Swipe to read the diagram →

PNP sourcing output with the load between sensor output and zero volts
ItemNPNPNP
Output behaviorSinks current when ONSources current when ON
Current path+V → load/input → output → 0 V+V → output → load/input → 0 V
Output voltage when ONNear 0 V under a compatible load; check residual voltageNear +V under a compatible load; check voltage drop
Typical PLC input pairingCompatible current-sourcing inputCompatible current-sinking input
Simple load connectionBetween +V and outputBetween output and 0 V

Choose the output type to match the installed PLC input circuit and its common connection, voltage and current requirements. Neither NPN nor PNP is inherently the better choice; if the module's “sourcing” or “sinking” label is unclear, trace the manufacturer's actual current path.

NPN NO vs NPN NC

NPN tells you the direction of current when the output transistor conducts. Normally open (NO) and normally closed (NC) tell you whether that transistor is OFF or ON in the manufacturer's specified normal, no-target condition. These are independent classifications.

NPN Normally Open (NO)

Swipe to read the diagram →

NPN normally open output off with no target and on when a target is detected
NPN Normally Closed (NC)

Swipe to read the diagram →

NPN normally closed output on with no target and off when a target is detected

Typical transistor states for a specified target

Target conditionNPN NONPN NC
No targetOutput OFFOutput ON
Target detectedOutput ONOutput OFF
These are output-transistor states, not a guaranteed PLC program “1” or “0.” Input wiring, module behavior and software inversion can change the logic value seen by the program.

How to Identify an NPN Sensor

Use the complete model and its documentation rather than guessing from the cable. Three wires or familiar colors alone do not prove that the output is NPN.

  1. Read the label and full model suffix. The output variant may be encoded in the suffix, but only the maker's model key confirms it.
  2. Find “Output Type” in the datasheet. Look for wording such as NPN transistor or NPN open collector, and check whether the model is NO, NC or selectable.
  3. Trace the output circuit diagram. In a typical NPN circuit, the external load is between +V and the output, and the conducting output completes a path toward 0 V.

Common NPN Sensor Wiring Problems

If the PLC does not respond as expected, compare the actual sensor and input-module drawings before changing connections. An indicator LED alone does not prove that the full input current path is correct.

Wrong Input Common

Symptom: The input never changes. Possible cause: The module common does not provide the required current path. Check: Match the exact input group's COM wiring to its manufacturer diagram.

Load Connection Mistake

Symptom: A connected load does not switch as expected. Possible cause: It is placed on the wrong side of a simple NPN output. Check: Compare the load path and output rating with the sensor's circuit diagram.

Polarity Confusion

Symptom: The sensor does not power or behave as expected. Possible cause: Incorrect supply polarity or reference. Check: With power isolated, compare the connector view, pinout and supply labels to the exact model documentation.

Controller Mismatch

Symptom: The sensor indication changes, but the PLC input does not. Possible cause: Input type, ON threshold or current requirement is incompatible. Check: Compare both devices' electrical specifications; do not infer compatibility from wire count.

Frequently Asked Questions

What does NPN mean in a sensor?

It identifies a transistor output that sinks current toward 0 V when ON. It does not identify the sensor's detection technology or NO/NC mode.

How can I tell whether a sensor is NPN or PNP?

Check the complete model number, the datasheet's output-type field and its output circuit diagram. Cable colors and wire count alone are not enough.

Can an NPN sensor work with any PLC?

No. The PLC input must provide a compatible current path and meet the sensor's voltage and current requirements. Verify the exact input module and its common connection.

Is an NPN sensor normally open or normally closed?

Either is possible. NPN specifies output topology; NO and NC specify when the output transistor is ON relative to the stated normal target condition.

Does an NPN sensor output 0 V or 24 V?

When ON under a compatible load, its output is pulled toward 0 V, with a model-dependent residual voltage. A typical open-collector output is high impedance when OFF, so its voltage depends on the external circuit; it is not inherently +24 V.

Can I replace a PNP sensor with an NPN sensor?

Not as a presumed drop-in replacement. The PLC input type, common wiring and current path may need to change. Compare the exact sensor and controller diagrams before selecting a substitute.

Need Help Selecting an NPN Sensor?

Share your target, sensing distance, supply voltage, output mode and PLC input model so our team can review the fit.

Ask an Engineer