Interfacing optoelectric proximity sensor with arduino

Hi,
What are your LEDs, please show a link to where you got them, are they like this?


If so you need to place resistors in series with each LED.
I find it hard to see how LED1 is lighting because the input current to the arduino input is very low.
We need to see a picture of your project please..

Tom.. :slight_smile: