Capacitive Proximity Sensor CR1-00-2A Question

Hi guys, I have a small problem with teaching the capacitive proximity sensor (CR1-00-2A). Does anyone know how to teach the sensor? I am able to wire the sensor and get the basic feedbacks, but I don’t know how to get it to detect new materials (plastic). The instruction showed me how to teach the sensor, but it was hard to comprehend.

Any type of assistance is appreciated.
Thank you.

A couple thoughts, first don’t wire to the roborio, just power on, 12v+ to brown, 12v- to blue. Teach the sensor as described, ie “empty state” being whatever you are sense within the 12mm sensing range is not there. Set the NO “Normally Open” NC “Normally Closed” output as desired. This means when the sensor is not detecting anything within 12mm, should the Black signal wire, be shorted or open.

Test sensor by placing item trying to detect within 12mm of sensor, dose the sensor change state? If so it is now “taught”, if not, look at instructions to teach the “Full State”.

If the sensor is indicating correctly, now you need to wire to roborio. The roborio needs an NPN switch, which means the signal the roborio needs to see change, is when the Sensor wire (White) of the DIO is shorted to 0V (Black) of the PWM.

If nothing is wired to a DIO and you look at it in your program, you will see that they will always be on, TRUE, 1, due to the internal pull up resistor of the roborio. You need to take the signal wire low, to see the change in state.