   Serial.println(mystr);
 }
 
-
-//Script I found online and modifed using the OneWire, returns the temperature in fahrenheit.
+//read input via serial
+void GetInput(){
+  if (Serial.available() > 0) {
+    incomingByte = Serial.read();
+    //light schduling 
+    //turn lights off
+    if(incomingByte == 48){     //being sent 1
+       digitalWrite(RELAY1,0);
+       powerIsOn = false;
+    }
+    //turn lights on
+    if(incomingByte == 49){     //being sent 0
+       digitalWrite(RELAY1,1);
+       powerIsOn = true;
+    }
+  }
+}
+
+uint8_t warnings[] = {0, 0, 0, 0,
+//turns on warning leds, should later control temperature.
+void SendCommands(){
+//  sensor operation
+//  lighting
+  if(powerIsOn && aquaLightReading < minLightAqua){
+    digitalWrite(warningLights[warningIndex, HIGH);
+    warningIndex++;
+  } else if(warnings[0] = 1;
+    digitalWrite(warningLights[warningIndex], LOW);
+    warningIndex++;
+  }
+  if(powerIsOn && plantLightReading < minLightPlant){
+    digitalWrite(warningLights[warningIndex, HIGH);
+    warningIndex++;
+  } else if(warnings[1] = 1;
+    digitalWrite(warningLights[warningIndex], LOW);
+    warningIndex++;
+  }
+  
+  //water temperature
+  float tempDifference = targetTemperature > waterTempReading ? targetTemperature - waterTempReading : waterTempReading - targetTemperature;
+  if(tempDifference > temperatureVarience){
+    digitalWrite(tempLed, HIGH);
+  }
+
+  //water turbidity
+  float turbDifference = targetTurbidity > waterTurbReading ? targetTurbidity - waterTurbReading : waterTurbReading - targetTurbidity;
+  if(turbDifference > turbidityVarience){
+    digitalWrite(turbLed, HIGH);
+  }
+
+//  water temp modifications
+}
+
+//Script I found online and modifed using the OneWire library, returns the temperature in fahrenheit.
 float ReadTemp(){
   byte i;
   byte present = 0;

  return fahrenheit;
}

//read input via serial
void GetInput(){
  if (Serial.available() > 0) {
    incomingByte = Serial.read();
    //light schduling 
    //turn lights off
    if(incomingByte == 48){     //being sent 1
       digitalWrite(RELAY1,0);
       powerIsOn = false;
    }
    //turn lights on
    if(incomingByte == 49){     //being sent 0
       digitalWrite(RELAY1,1);
       powerIsOn = true;
    }
  }
}

//turns on warning leds, should later control temperature.
void SendCommands(){
//  sensor operation
//  lighting
  if(powerIsOn && aquaLightReading < minLightAqua){
    digitalWrite(aquaLed, HIGH);
  }
  if(powerIsOn && plantLightReading < minLightPlant){
    digitalWrite(plantLed, HIGH);
  }
  
  //water temperature
  float tempDifference = targetTemperature > waterTempReading ? targetTemperature - waterTempReading : waterTempReading - targetTemperature;
  if(tempDifference > temperatureVarience){
    digitalWrite(tempLed, HIGH);
  }

  //water turbidity
  float turbDifference = targetTurbidity > waterTurbReading ? targetTurbidity - waterTurbReading : waterTurbReading - targetTurbidity;
  if(turbDifference > turbidityVarience){
    digitalWrite(turbLed, HIGH);
  }

//  water temp modifications
}


bool powerIsOn = true;

uint8_t incomingByte;

uint8_t warningLights[] = {0, 0, 0};
uint8_t warningIndex = 0;

bool onAuto = true;
#define autoTime 1 //number of hours until auto mode resumes.
