Light 3 individual LEDs when three individual LDRs detect bright light.

Hi Guys,
This is my first post here as I am a complete newbie to Arduino.
I am doing a university project that involves turning on an LED when an LDR detects bright light.

I need to be able to do this for three individual pairs of LED and LDRs.

so to clarify, -LDR 1 detects bright light from an external source and triggers LED1
-LDR2 detects bright light from an external source and triggers LED2
-LDR 3 detects bright light from an external source and triggers LED3

How would I go about doing this? Any help would be greatly appreciated!

Write the code for one LDR/LED pair.
Wrap the code in a for loop.

AWOL:
Write the code for one LDR/LED pair.
Wrap the code in a for loop.

Thanks for your reply. my Arduino knowledge is poor but I will try make sense of your advice :slight_smile:

LDR's correctly (voltage divider) connected to an analogue pin, LED's correctly (current limiting resistor) connected to digital pin.
Sudo code...

Setup digital pins for output
do
  if analogue value > threshold
    turn on led
  else
    turn off led
loop