Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›LJ12A3-4-Z/BX Inductive Proximity Sensor

Component guide · Beginner · 10 min read

LJ12A3-4-Z/BX Inductive Proximity Sensor

Codes, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the LJ12A3 proximity sensor isLJ12A3 proximity sensor pinoutWiring the LJ12A3 proximity sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

The LJ12A3-4-Z/BX is the most common inductive proximity sensor: an M12 metal barrel that detects metal up to 4 mm away without touching it. It runs from 6 to 36 V and has an NPN normally-open output. The same LJ series comes in M4 to M30 sizes and NPN, PNP, normally-closed, 2-wire and AC versions, all decoded from the part code. Use it for end stops, counting and bed levelling.

Key specs at a glance

Detects
Metal only (steel best; aluminium and copper at shorter range)
Range
4 mm (LJ12A3-4), 8 mm (LJ18A3-8), 10 mm (LJ24A3-10), 15 mm (LJ30A3-15), 1-2 mm (LJ4/5/6/8A3)
Supply
6 to 36 V DC (Z types), 90 to 250 V AC (J types)
Output
NPN or PNP, open collector, up to 200-300 mA
Wires
Brown +V, blue 0 V, black output (3-wire); brown and blue only on 2-wire
Housing
Threaded metal barrel, IP65 to IP67

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO 4mm DC6–36V – M12 Thread₹170
  • Option 2LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO DC6-36V 4mm Range₹198
  • Option 3Inductive Proximity Switch LJ12A3-4-Z/BX₹154
  • Option 4LJ12A3-4-J/DZ / R12-4A2 Inductive Proximity Sensor NC, 4mm Detection, DC 6–36V, IP65, 1.2m Cable₹159
  • Option 5LJ12A3-4-J/EZ / R12-4A1 Inductive Proximity Sensor NO, DC 6–36V, 4mm Detection Range, IP65₹159
  • Option 6LJ12A3-4-Z/AX Inductive Proximity Sensor – NPN Output, 4mm Range, IP65, Metal Shell₹159
01

What the LJ12A3 proximity sensor is

The sensor makes an alternating magnetic field at its face. Metal in front of it absorbs some of that field, and the electronics switch the output.

Reading the code: LJ = inductive, 12 = M12 barrel, A3 = cylinder, 4 = 4 mm range, Z = DC (J = AC), and the last letters set the output: AX = NPN NC, BX = NPN NO, AY = PNP NC, BY = PNP NO, DX/EX = 2-wire DC NC/NO, DZ/EZ = 2-wire AC NC/NO. For an Arduino or ESP32, choose an NPN 3-wire type (BX or AX).

02

LJ12A3 proximity sensor pinout

The pins on the LJ12A3 proximity sensor and what each one does.

PinFunction
Brown+V supply, 6 to 36 V DC (or AC live on J types)
Blue0 V / GND
BlackOutput (3-wire types): NPN pulls to 0 V, PNP pulls to +V
LEDLights when metal is detected
PinFunction
Brown
+V supply, 6 to 36 V DC (or AC live on J types)
Blue
0 V / GND
Black
Output (3-wire types): NPN pulls to 0 V, PNP pulls to +V
LED
Lights when metal is detected
03

Wiring the LJ12A3 proximity sensor

An NPN output only pulls the signal to ground, so the board's own pull-up sets the HIGH level: the Arduino sees 5 V, the ESP32 3.3 V, and the 12 V never reaches the pin. A PNP output switches +12 V and must go through a divider or an optocoupler. Never wire AC (J) types to a microcontroller.

LJ12A3 proximity sensor pinArduino UnoESP32
Brown12 V supply +12 V supply +
BlueSupply - and Uno GNDSupply - and ESP32 GND
Black (NPN)D2 with INPUT_PULLUP (5 V)GPIO 27 with INPUT_PULLUP (3.3 V)
Brown
Arduino Uno:
12 V supply +
ESP32:
12 V supply +
Blue
Arduino Uno:
Supply - and Uno GND
ESP32:
Supply - and ESP32 GND
Black (NPN)
Arduino Uno:
D2 with INPUT_PULLUP (5 V)
ESP32:
GPIO 27 with INPUT_PULLUP (3.3 V)
04

Example code

With an NO (BX) sensor the input reads LOW when metal is present. For a 3D printer Z probe, connect black to the Z-min input and set the probe offset in firmware.

Count metal objects passing the sensor (Arduino) · Arduino C++Verify & upload in Electrolark
const int SENSOR = 2;
volatile unsigned long count = 0;

void hit() { count++; }

void setup() {
  Serial.begin(115200);
  pinMode(SENSOR, INPUT_PULLUP);        // NPN output pulls LOW on metal
  attachInterrupt(digitalPinToInterrupt(SENSOR), hit, FALLING);
}

void loop() {
  static unsigned long last = 0;
  if (count != last) {
    last = count;
    Serial.print("Count: "); Serial.println(count);
  }
}
05

Setup and tuning

Range depends on metal

the stated range is for mild steel; aluminium gives about 40 % of it, so test with your target.

Mounting

shielded (flush) types can sit flush in metal; unshielded need clear space around the face.

Supply

12 or 24 V works best; at 5 V many will not switch reliably.

Bed levelling

works on steel or steel-sheet beds, not on bare glass or aluminium at full range.

06

What you need

Shop this list20 of 20 found in our store · ₹4,748

  • Generic LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO 4mm DC6–36V – M12 Thread: the part this guide coversLJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO 4mm DC6–36V – M12 Thread₹170
  • LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO DC6-36V 4mm Range: another version this guide coversLJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO DC6-36V 4mm Range₹198
  • Inductive Proximity Switch LJ12A3-4-Z/BX: another version this guide coversInductive Proximity Switch LJ12A3-4-Z/BX₹154
  • Generic LJ12A3-4-J/DZ / R12-4A2 Inductive Proximity Sensor NC, 4mm Detection, DC 6–36V, IP65, 1.2m Cable: another version this guide coversLJ12A3-4-J/DZ / R12-4A2 Inductive Proximity Sensor NC, 4mm Detection, DC 6–36V, IP65, 1.2m Cable₹159
  • LJ12A3-4-J/EZ / R12-4A1 Inductive Proximity Sensor NO, DC 6–36V, 4mm Detection Range, IP65: another version this guide coversLJ12A3-4-J/EZ / R12-4A1 Inductive Proximity Sensor NO, DC 6–36V, 4mm Detection Range, IP65₹159
  • Generic LJ12A3-4-Z/AX Inductive Proximity Sensor – NPN Output, 4mm Range, IP65, Metal Shell: another version this guide coversLJ12A3-4-Z/AX Inductive Proximity Sensor – NPN Output, 4mm Range, IP65, Metal Shell₹159
  • Generic LJ12A3-4-Z/AY Inductive Proximity Sensor NPN NO, DC 6–36V, 4mm Detection, IP65: another version this guide coversLJ12A3-4-Z/AY Inductive Proximity Sensor NPN NO, DC 6–36V, 4mm Detection, IP65₹146
  • Generic LJ12A3-4-Z/BY Inductive Proximity Sensor – NPN NO Output, 4mm Range, 1.15m Cable: another version this guide coversLJ12A3-4-Z/BY Inductive Proximity Sensor – NPN NO Output, 4mm Range, 1.15m Cable₹349
  • LJ12A3-4-Z/DX Inductive Proximity Sensor NC, 6–36VDC, 4mm Detection Range: another version this guide coversLJ12A3-4-Z/DX Inductive Proximity Sensor NC, 6–36VDC, 4mm Detection Range₹349
  • LJ12A3-4-Z/EX Inductive Proximity Sensor 2-Wire DC NO, 4mm Detection, 6–36V, IP66: another version this guide coversLJ12A3-4-Z/EX Inductive Proximity Sensor 2-Wire DC NO, 4mm Detection, 6–36V, IP66₹159
  • LJ18A3-8-J/DZ / R18-8A2 Inductive Proximity Sensor NC, DC 6–36V, 300mA, 6.4mm Detection Range: another version this guide coversLJ18A3-8-J/DZ / R18-8A2 Inductive Proximity Sensor NC, DC 6–36V, 300mA, 6.4mm Detection Range₹209
  • Generic LJ18A3-8-J/EZ Inductive Proximity Sensor NO, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated, IP65: another version this guide coversLJ18A3-8-J/EZ Inductive Proximity Sensor NO, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated, IP65₹209
  • Generic LJ18A3-8-Z/AX Inductive Proximity Sensor NPN NC, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated: another version this guide coversLJ18A3-8-Z/AX Inductive Proximity Sensor NPN NC, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated₹329
  • Generic LJ18A3-8-Z/AY Inductive Proximity Sensor PNP NC, DC 6–36V, 6.4mm Detection Range: another version this guide coversLJ18A3-8-Z/AY Inductive Proximity Sensor PNP NC, DC 6–36V, 6.4mm Detection Range₹219
  • LJ18A3-8-Z/BX Inductive Proximity Sensor NPN NO, DC 6–36V, 8mm Range, IP54: another version this guide coversLJ18A3-8-Z/BX Inductive Proximity Sensor NPN NO, DC 6–36V, 8mm Range, IP54₹389
  • Generic LJ18A3-8-Z/BY Inductive Proximity Sensor PNP NO, DC 6–36V, 8mm Detection, IP65: another version this guide coversLJ18A3-8-Z/BY Inductive Proximity Sensor PNP NO, DC 6–36V, 8mm Detection, IP65₹379
  • LJ18A3-8-Z/DX Inductive Proximity Sensor, 2-Wire DC NC, 6–36V, 6.4mm Detection Range: another version this guide coversLJ18A3-8-Z/DX Inductive Proximity Sensor, 2-Wire DC NC, 6–36V, 6.4mm Detection Range₹185
  • Generic LJ18A3-8-Z/EX Inductive Proximity Sensor, 6.4mm Detection Range, 2-Wire DC NO, 10-36V, IP65: another version this guide coversLJ18A3-8-Z/EX Inductive Proximity Sensor, 6.4mm Detection Range, 2-Wire DC NO, 10-36V, IP65₹209
  • Generic LJ24A3-10-J/DZ / R24-10A2 Inductive Proximity Sensor AC NC, 10mm Detection, 90–250VAC, 400mA, IP65: another version this guide coversLJ24A3-10-J/DZ / R24-10A2 Inductive Proximity Sensor AC NC, 10mm Detection, 90–250VAC, 400mA, IP65₹299
  • Generic LJ24A3-10-J/EZ / R24-10A1 Inductive Proximity Sensor, AC NO, 90–250VAC, 400mA, 10mm Range, IP65, Brass-Nickel Plated Housing: another version this guide coversLJ24A3-10-J/EZ / R24-10A1 Inductive Proximity Sensor, AC NO, 90–250VAC, 400mA, 10mm Range, IP65, Brass-Nickel Plated Housing₹319
07

Alternatives and when to choose them

  • ✓Inductive and capacitive proximity sensors: how the types and outputs compare.
  • ✓Limit switches: mechanical end stops, cheaper and simpler.
  • ✓Hall effect sensor: detects magnets at low voltage.
08

Try it: Voltage divider calculator

Change the values and the diagram and results update as you type.

09

Common mistakes to avoid

  • !Wiring a PNP output straight into a 3.3 V or 5 V pin.
  • !Powering it from 5 V and getting no switching.
  • !Expecting the full range on aluminium or copper.
  • !Connecting an AC (J) type to low-voltage electronics.
10

Frequently asked questions

What does LJ12A3-4-Z/BX mean?

M12 inductive sensor, 4 mm range, DC supply, NPN normally-open output.

Can I connect it to an Arduino?

Yes, an NPN type with the input's pull-up enabled. Power the sensor from 6 to 36 V.

Does it detect plastic or wood?

No, only metal. Use a capacitive sensor for non-metals.

NPN or PNP?

NPN for Arduino and most 3D printer boards; PNP for many European PLCs.

Can it work as a 3D printer Z probe?

Yes, on steel beds, with the output to the Z-min pin.

Parts for this guide

  • LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO 4mm DC6–36V – M12 Thread
    ₹170View
  • LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO DC6-36V 4mm Range
    ₹198View
  • Inductive Proximity Switch LJ12A3-4-Z/BX
    ₹154View
  • LJ12A3-4-J/DZ / R12-4A2 Inductive Proximity Sensor NC, 4mm Detection, DC 6–36V, IP65, 1.2m Cable
    ₹159View
  • LJ12A3-4-J/EZ / R12-4A1 Inductive Proximity Sensor NO, DC 6–36V, 4mm Detection Range, IP65
    ₹159View
  • LJ12A3-4-Z/AX Inductive Proximity Sensor – NPN Output, 4mm Range, IP65, Metal Shell
    ₹159View
  • LJ12A3-4-Z/AY Inductive Proximity Sensor NPN NO, DC 6–36V, 4mm Detection, IP65
    ₹146View
  • LJ12A3-4-Z/BY Inductive Proximity Sensor – NPN NO Output, 4mm Range, 1.15m Cable
    ₹349View
  • LJ12A3-4-Z/DX Inductive Proximity Sensor NC, 6–36VDC, 4mm Detection Range
    ₹349View
  • LJ12A3-4-Z/EX Inductive Proximity Sensor 2-Wire DC NO, 4mm Detection, 6–36V, IP66
    ₹159View
  • LJ18A3-8-J/DZ / R18-8A2 Inductive Proximity Sensor NC, DC 6–36V, 300mA, 6.4mm Detection Range
    ₹209View
  • LJ18A3-8-J/EZ Inductive Proximity Sensor NO, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated, IP65
    ₹209View
  • LJ18A3-8-Z/AX Inductive Proximity Sensor NPN NC, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated
    ₹329View
  • LJ18A3-8-Z/AY Inductive Proximity Sensor PNP NC, DC 6–36V, 6.4mm Detection Range
    ₹219View
  • LJ18A3-8-Z/BX Inductive Proximity Sensor NPN NO, DC 6–36V, 8mm Range, IP54
    ₹389View
  • LJ18A3-8-Z/BY Inductive Proximity Sensor PNP NO, DC 6–36V, 8mm Detection, IP65
    ₹379View
  • LJ18A3-8-Z/DX Inductive Proximity Sensor, 2-Wire DC NC, 6–36V, 6.4mm Detection Range
    ₹185View
  • LJ18A3-8-Z/EX Inductive Proximity Sensor, 6.4mm Detection Range, 2-Wire DC NO, 10-36V, IP65
    ₹209View
  • LJ24A3-10-J/DZ / R24-10A2 Inductive Proximity Sensor AC NC, 10mm Detection, 90–250VAC, 400mA, IP65
    ₹299View
  • LJ24A3-10-J/EZ / R24-10A1 Inductive Proximity Sensor, AC NO, 90–250VAC, 400mA, 10mm Range, IP65, Brass-Nickel Plated Housing
    ₹319View
  • LJ24A3-10-Z/AX Inductive Proximity Sensor, NPN NC, 10mm Detection, 6-36VDC, IP65, Brass-Nickel Housing
    ₹309View
  • LJ24A3-10-Z/AY Inductive Proximity Sensor PNP NC, 10mm Detection, 6-36VDC, 300mA, Brass-Nickel Housing, IP65
    ₹289View
  • LJ24A3-10-Z/BX Inductive Proximity Sensor, NPN NO, 10mm Range, 6-36VDC, IP65, Brass Housing
    ₹359View
  • LJ24A3-10-Z/BY Inductive Proximity Sensor, PNP NO, 10mm Range, 6-36VDC, IP65, Brass-Nickel Housing
    ₹359View
  • LJ24A3-10-Z/DX Inductive Proximity Sensor, 2-Wire DC NC, 6–36VDC, 10mm Detection Range, Brass-Nickel Plated Housing
    ₹269View
  • LJ24A3-10-Z/EX Inductive Proximity Sensor, 2-Wire DC NO, 6–36VDC, 10mm Detection Range, Brass-Nickel Plated Housing, IP65
    ₹359View
  • LJ30A3-15-J/DZ / R30-15A2 Inductive Proximity Sensor AC NC, 15mm Detection, 90–250VAC, 400mA
    ₹319View
  • LJ30A3-15-J/EZ / R30-15A1 Inductive Proximity Sensor, AC NO, 90–250VAC, 15mm Range, IP65
    ₹389View
  • LJ30A3-15-Z/AX Inductive Proximity Sensor, NPN NC, 15mm Range, 6-36VDC, IP65, Brass-Nickel Plated
    ₹379View
  • LJ30A3-15-Z/AY Inductive Proximity Sensor, PNP NC, 15mm Range, 6-36VDC, IP65, Brass-Nickel Housing
    ₹389View
  • LJ30A3-15-Z/BX Inductive Proximity Sensor, NPN NO, 15mm Range, 6-36VDC, IP65, Non-Shielded
    ₹689View
  • LJ30A3-15-Z/BY Inductive Proximity Sensor PNP NO, 15mm Range, 6-36VDC, IP65
    ₹529View
  • LJ30A3-15-Z/DX Inductive Proximity Sensor, 2-Wire DC NC, 15mm Detection, Brass-Nickel Housing, IP65
    ₹309View
  • LJ30A3-15-Z/EX Inductive Proximity Sensor, 15mm Range, 2-Wire DC NO, 6–36VDC, IP65, Brass-Nickel Plated
    ₹359View
  • LJ4A3-1-Z/AX Inductive Proximity Sensor NPN NC, 1mm Detection Range, Shielded, 10-30VDC
    ₹379View
  • LJ4A3-1-Z/AY Inductive Proximity Sensor PNP NC, 1mm Detection, 10–30VDC, IP65, Shielded
    ₹439View
  • LJ4A3-1-Z/BX Inductive Proximity Sensor NPN NO, 10–30VDC, 1mm Detection, IP65, Brass-Nickel Housing
    ₹709View
  • LJ4A3-1-Z/BY Inductive Proximity Sensor, PNP NO, 1mm Detection Range, 12-24VDC, IP65, Brass-Nickel Housing
    ₹469View
  • LJ5A3-1-Z/AX Inductive Proximity Sensor NPN NC, 1mm Detection, 10-30VDC, IP65
    ₹409View
  • LJ5A3-1-Z/AY Inductive Proximity Sensor PNP NC, 1mm Detection, 10-30VDC, IP65, Brass-Nickel Housing
    ₹389View
  • LJ5A3-1-Z/BX Inductive Proximity Sensor, NPN NO, 10–30VDC, 1mm Detection Range, IP65
    ₹859View
  • LJ5A3-1-Z/BY Inductive Proximity Sensor – PNP NO, 10-30VDC, 1mm Range, IP65
    ₹829View
  • LJ6A3-1-Z/AX Inductive Proximity Sensor NPN NC, 1mm Detection, IP65, Shielded
    ₹459View
  • LJ6A3-1-Z/AY Inductive Proximity Sensor PNP NC, 1.5mm Detection Range, Shielded, 1.2m Cable
    ₹389View
  • LJ6A3-1-Z/BX Inductive Proximity Sensor NPN NO, 1mm Detection, 10-30VDC, 300mA
    ₹439View
  • LJ6A3-1-Z/BY Inductive Proximity Sensor, PNP NO, 1mm Range, 10-30VDC, IP65
    ₹499View
  • LJ8A3-2-Z/AX Inductive Proximity Sensor, NPN NC, 2mm Range, DC 6-36V, IP65
    ₹249View
  • LJ8A3-2-Z/AY Inductive Proximity Sensor PNP NC, DC 6–36V, 2mm Detection Range
    ₹369View
  • LJ8A3-2-Z/BX NPN NO Inductive Proximity Sensor, 2mm Detection, DC 6-36V, IP65, Brass-Nickel Plated
    ₹249View
  • LJ8A3-2-Z/BY Inductive Proximity Sensor PNP NO, DC 6–36V, 2mm Range, IP65
    ₹259View
  • LJ8A3-2-Z/EX Inductive Proximity Sensor 2-Wire DC NO, 6–36V, 2mm Range, IP65
    ₹339View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • SMPS Power Supply, Metal Enclosure (5V / 12V / 24V)
    ₹298View
  • 5V Relay Module with Optocoupler
    ₹74View
  • Optocoupler IC: MOC3021, MOC3041, MOC3063, 6N137, 6N138, EL817, MCT2E and More
    ₹28View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop Proximity & Inductive/Capacitive SensorsShop Push Buttons & Tactile

Calculators

Voltage divider calculator

Keep learning

Component guideIntermediateInductive and Capacitive Proximity Sensors (NPN, PNP)An inductive proximity sensor detects metal without touching it, using a magnetic field from a coil in its tip.3 min read · SensorsComponent guideBeginnerLimit Switches and Micro SwitchesA micro switch (snap-action switch) changes state with a small, precise movement of its lever.3 min read · Switches, Relays & InputComponent guideIntermediateOptocouplersAn optocoupler contains an LED and a light-sensitive transistor in one package with no electrical connection between them.3 min read · Semiconductors & ICs

Sources

  • LJ series inductive proximity switch datasheet
  • IEC 60947-5-2 proximity switch terminology

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the LJ12A3 proximity sensor isLJ12A3 proximity sensor pinoutWiring the LJ12A3 proximity sensorExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide6 items · ₹1,501

LJ12A3-4-Z/BX Inductive Proximity Sensor NPN NO 4mm DC6–36V – M12 Thread · LJ18A3-8-J/DZ / R18-8A2 Inductive Proximity Sensor NC, DC 6–36V, 300mA, 6.4mm Detection Range · LJ18A3-8-Z/AX Inductive Proximity Sensor NPN NC, DC 6–36V, 6.4mm Detection, Brass-Nickel Plated · LJ18A3-8-Z/AY Inductive Proximity Sensor PNP NC, DC 6–36V, 6.4mm Detection Range · LJ18A3-8-Z/BX Inductive Proximity Sensor NPN NO, DC 6–36V, 8mm Range, IP54 · LJ18A3-8-Z/DX Inductive Proximity Sensor, 2-Wire DC NC, 6–36V, 6.4mm Detection Range

Run itChange the inputs and watch the output

Senses steel up to about 4 mm away. Each pass adds one.

Serial monitor115200 baud
 

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question