Quantity   Component name
1 × Capacitive Proximity Sensor Switch LJC18A3-B-Z/AY PNP NC 3-Wires 10mm Capacitive Proximity Sensor Switch DC 6-36V
1 × 15K Ohm and 10K Ohm resistors Voltage devider
1 × Solder, heat shrink, wire, etc... Connecting and insulation, Inline conneting