Robot Pi Shop

LJ12A3-4-Z/BX-5V Inductive Proximity Sensor

$4.99

Shipping calculated at checkout.

Quantity

LJ12A3-4-Z/BX-5V Inductive Proximity Sensor – 4mm NPN Normally Open

The LJ12A3-4-Z/BX-5V Inductive Proximity Sensor is a compact, non-contact metal detection sensor designed for robotics, automation, CNC machines, and electronic control systems.

Operating from a 5V DC power supply, the sensor detects nearby metallic objects without physical contact and provides an NPN Normally Open (NO) digital switching output.

Featuring a 4mm nominal detection distance, an M12 threaded cylindrical body, and a three-wire connection, the sensor is suitable for object detection, position sensing, and machine automation applications.

Key Features

  • Model: LJ12A3-4-Z/BX-5V
  • Sensor Type: Inductive Proximity Sensor
  • Operating Voltage: 5V DC
  • Detection Distance: 4mm Nominal
  • Output Type: NPN Normally Open (NO)
  • Detection Method: Non-Contact Metal Detection
  • Thread Size: M12
  • Three-Wire Connection: Brown, Blue, Black
  • Switching Frequency: Approximately 150Hz
  • Maximum Rated Output Current: 300mA, according to supplied specifications
  • Cylindrical Metal Housing
  • Suitable for Arduino and Industrial Automation Projects

Technical Specifications

Parameter Specification
Model LJ12A3-4-Z/BX-5V
Product Type Inductive Proximity Sensor
Detection Principle Electromagnetic Induction
Detectable Material Metal
Nominal Detection Distance 4mm
Operating Voltage 5V DC
Output Configuration NPN Normally Open
Output Signal Transistor Switching Output
Rated Output Current Up to 300mA, as Listed
Switching Frequency Approximately 150Hz
Thread Size M12
Listed Thread Diameter Approximately 10.5mm, Minor Diameter
Sensing Head Diameter Approximately 11.8mm
Wire Configuration 3-Wire
Wire Colors Brown, Blue, Black
Reference Target Iron / Steel
Operating Temperature -25°C to +55°C, as Listed
Housing Type Threaded Cylindrical
Mounting Threaded Body with Lock Nuts
Protection Rating Manufacturer Specification Required

Note: Detection distance is typically specified using a standard ferrous-metal target. Actual sensing distance can be shorter for aluminum, copper, stainless steel, or smaller objects.

Wiring Configuration

The sensor uses a standard three-wire NPN connection.

Wire Color Function Connection
Brown Positive Supply +5V DC
Blue Ground GND
Black NPN Output Digital Input with Pull-Up

Output Operation

The sensor has a Normally Open NPN transistor output.

  • No metal detected: Output transistor is OFF.
  • Metal detected: Output transistor turns ON and pulls the output toward ground.

A pull-up resistor or suitable controller input circuit is required to obtain a defined HIGH signal when the transistor is OFF.

Arduino Uno Connection Example

Sensor Wire Arduino Uno
Brown 5V
Blue GND
Black D2

Configure the Arduino input with its internal pull-up resistor.

Arduino Example Code

const int sensorPin = 2;

void setup() {
  pinMode(sensorPin, INPUT_PULLUP);
  Serial.begin(9600);
}

void loop() {
  if (digitalRead(sensorPin) == LOW) {
    Serial.println("Metal Detected");
  } else {
    Serial.println("No Metal Detected");
  }

  delay(100);
}

This example assumes the sensor has the specified NPN open-collector-style output and that its wiring matches the listed color configuration.

ESP32 Compatibility

The LJ12A3-4-Z/BX-5V can also be used with an ESP32 development board.

The sensor requires a 5V supply, while ESP32 GPIO pins operate at 3.3V logic.

For a verified open-collector NPN output, use a suitable pull-up resistor to 3.3V on the signal line rather than pulling the ESP32 input up to 5V.

Confirm the actual sensor output circuit before connecting it to an ESP32.

Applications

  • CNC Machine Position Detection
  • 3D Printer and Motion System Projects
  • Robotics
  • Metal Object Detection
  • Industrial Automation
  • Conveyor Systems
  • Machine Position Monitoring
  • Electronic Counters
  • Limit Detection
  • Arduino and Microcontroller Projects
  • Educational Automation Systems

Important Notes

  • The sensor detects metallic objects, not plastic, wood, or glass.
  • The nominal sensing distance is 4mm for the specified reference target.
  • Detection range depends on the material, size, and orientation of the target.
  • The sensor is NPN Normally Open, not PNP.
  • The black output wire should not be treated as a push-pull 5V output without verification.
  • A pull-up resistor may be required.
  • The 300mA rating is an output-load rating, not the sensor's normal power consumption.
  • The sensor is designed for 5V operation; do not substitute a 6–36V LJ12A3 version without checking compatibility.
  • The device is not intended for safety-critical machine protection.
  • Do not exceed the manufacturer's voltage, current, or environmental ratings.

Package Includes

1 × LJ12A3-4-Z/BX-5V Inductive Proximity Sensor