Description
What it is
The inductive proximity sensor LJ18A3-8-Z/AX is a device used to detect metallic objects without contact. This type of sensor is common in industrial and domestic applications where it is necessary to monitor the presence or absence of metals.
Features
- Supply voltage: 6-36V
- Maximum current: 300mA
- Sensor type: NPN NC (negative common)
- Total length: 18mm
What it is for
This sensor is ideal for Arduino and ESP projects, usable in domestic or industrial security systems. It can be integrated into automatic doors, intrusion alarms, and other devices that require the detection of metallic objects.
Tutorial: How to use Proximity Sensor LJ18A3-8-Z/AX
The inductive proximity sensor LJ18A3-8-Z/AX is ideal for detecting metallic objects without contact, useful in various electronic devices such as automatic doors or security systems. It is suitable for both beginners and more experienced makers for home and industrial automation projects.
What you need
- Arduino Uno
- USB Type B cable
- Potentiometer connection (optional)
Steps
- Connect the sensor to a digital pin on the Arduino.
- Download and upload the provided Arduino sketch.
- Check the correct power supply of the sensor between 6V and 36V DC.
- Configure the sensor sensitivity parameters if necessary (check the datasheet).
- Test the detection of a metallic object near the sensor.
- Adjust the sensitivity if needed with a potentiometer connected to the sensor’s configuration pins.
Example code
void setup() {
pinMode(A0, INPUT);
}
void loop() {
int val = digitalRead(A0);
if(val == HIGH) Serial.println("Oggetto rilevato");
}
Mini project
Create a home security system that sends a notification when the presence of a metallic object is detected.
Common mistakes
- Do not properly verify the sensor power supply.
- Omit the configuration pin connections if necessary.
- Ignore sensitivity parameters during testing.
- Use non-metallic materials to test detection.
Recommended accessories
- Arduino Uno
- Breadboard
- Jumper wires
Frequently asked questions
Does the sensor only work with metallic objects?
Yes, the LJ18A3-8-Z/AX is specifically designed to detect metallic objects.
Can I use a potentiometer to adjust the sensor sensitivity?
Yes, by connecting the configuration pins to the potentiometer, you can adjust the detection range.







Reviews
There are no reviews yet.