how to power this sensor? Can somebody suggest me any adapter, which fulfills the conditions for this sensor? Or should be a standard 24V adapter ok for this?
If I connect the signal cable to the ESP32-S3 : Do I need any further potential divider? Or can I connect it directly? I believe a ESP32-Pin needs 3,3V
A Hallsensor was our first approach. This could be an alternative. But we are not sure, if we are allowed to attach a magnet. We will see it in the next days.
UPdate: Hallsensor was not possible to use. Therefore we try to use this proximity sensor for counting.
By that diagram, yes..
BUT note, the output (black) will go from 0V to what ever voltage you have on the +V (brown) wire.
Make sure this is not higher than 3V3, the logic level of the ESP32.
Yes, but you can't connect a PNP-type output sensor directly to an ESP pin.
The black signal wire has the same output voltage as the sensor supply, frying the ESP pin.
You need a voltage divider or an opto coupler, to bring that sensor signal voltage down to a safe 3.3volt.
Leo..
When you get the sensor can you check with a DMM between signal and gnd that it works and the output voltage, before you connect it to the ESP32 circuit.