Hello.I am working in a proyect to count objects and i have this elements:
-Arduino Uno
-Photoelectric Sensorhttp://www.pepperl-fuchs.com/global/en/classid_47.htm?view=productdetails&prodid=43241 with the connection in attach image.
My question is about the possibility of the connection to Arduino and how could be done.
According the the data sheet linked by robtillart, the output of the sensor is a relay, which for your purposes is just a switch.
Connect the "C" output to Arduino ground and the "NO" output to an Arduino pin, with the pin set as INPUT with pullup resistor ON (INPUT_PULLUP). Then, a LOW in the input will tell you that the relay contacts have closed.
If it's OK to latch on to this thread, I'm trying to do something similar for an outdoor camera trap project. The comments on this thread were helpful in my research, and I've drawn up my understanding of such a setup (attached) but I'd like to make sure I've got it right. My other questions are: will my computer be safe (never used relays before), or do I need to add an extra fuse? Is the Arduino Micro right for the job (or is an Uno with its own power supply safer)?