It is a Proximity Switch 18mm in size, Inductive (NPN NO), with 10mm sensing range, 6V – 36V DC, Non-flush. It is a product of Taiwan which comes with 3 wires, brown to positive, blue to ground, and black to output.
I have bought a 7805 to step down the voltage from the sensor to prevent the PIC from damage. Any idea how should I connect this to the PIC?
Should I use a pull down resistor?