So here is the first attempt to making the aquarium light code work. I may be able to clean it up but i will call this one V.1, I know there are many things I haven’t thought about but I will add as I go along.
I have to thank the “Getting started with Arduino” book for this code. I combined some of the examples to get the desired result.
Parts:
10 White LED’s
3 Blue LED’s
1 LDR
13 82 ohm Resistors
1 Arduino
Jumper cables.
1 breadboard (for prototyping)

// Set the brightness of LED to
// a brightness specified by the
// value of the analogue input LDR and add a mood light when off.
//
#define LED1 9 // the pin for the LED white
#define LED2 10 //THE PIN FOR THE LED BLUE
//
int val = 0; // variable used to store the value
// coming from the sensor
void setup() {
pinMode(LED1, OUTPUT); // LED is as an OUTPUT
// Note: Analogue pins are
// automatically set as inputs
}
void loop() {
val = analogRead(0); // read the value from
// the sensor
analogWrite(LED1, val/4); // turn the LED on at
// the brightness set
// by the sensor
delay(7200000); // stop the program for
// some time (2 hours)
if (val == 0) {
digitalWrite(LED2, HIGH); // Blue LED will be on if the white is off
}
if (val != 0) { //IF value is not equal to 0 blue LED on.
digitalWrite(LED2, LOW);
}
}