Im newbie to this arduino and electronic stuffs.
I bought 2 KEYENCE FS-N41N (Digital Fiber Optic Sensor - FS-N40 series | KEYENCE America), 1 power supply, and 1 solenoid valve.
The keyence sensor has 3 wires, brown(12 to 24vdc), black(5 to 40vdc through a load) and blue(0vdc).
The solenoid valve has 2 wires only, red and blue.
Can someone guide me on how to connect these things with arduino. 2 sensors as my 2 input and solenoid valve as my output.
Thanks in advance for your kindness in helping me out.
You cannot connect the 12 ~ 24V output directly to an Arduino input ( 3.3 or 5V) depending on which Arduino model you have. You will need to use a voltage divider to reduce the voltage below the Arduino's supply voltage.