A connection from the anode of the Red LED with digital read to an Arduino pin. As stated place a current limiting resistor between this and the led or from cathode to ground.
Smajdalf:
digitalRead?
Do you know you need a current limiting resistor is the red LED is a common LED?
wolframore:
A connection from the anode of the Red LED with digital read to an Arduino pin. As stated place a current limiting resistor between this and the led or from cathode to ground.
It worked after connecting a resistor from the cathode to the ground, Thanks for the help!