 #include "OneWire.h"
 
 //analog pins
-#define plantLight A0
+#define plantLight A1
 #define aquaLight A1
-#define waterTurbSensor A2
+#define waterTurbSensor A0
+#define ovenTemp A0
 
 //digital pins
 OneWire  ds(2); //water temp sensor
-#define RELAY1  3
+#define RELAY1  5
 #define plantLed 4
 #define aquaLed 5
 #define turbLed 6

 * After an hour has passed, auto mode will turn back on.
 */
void GetManual(){
  if(digitalRead(lightButton)){
    digitalWrite(RELAY1, powerIsOn);
    powerIsOn = !powerIsOn;
    autoTimer = millis();
  }
}

/*these will be raw readings, converting from voltage to 
 * degrees or light etc should most likly done in a seperate 
 * function or even in the data logger.
 */
void LogData(){
  if(bufferCounter >= 64) return;
  plantLightReading = analogRead(aquaLight);
  aquaLightReading = analogRead(plantLight);
  waterTempReading = ReadTemp();
  waterTurbReading = analogRead(waterTurbSensor);
  plantLightBuffer[bufferCounter] = plantLightReading;
  aquaLightBuffer[bufferCounter] = aquaLightReading;
  tempBuffer[bufferCounter] = waterTempReading;
  turbBuffer[bufferCounter] = waterTurbReading;
  bufferCounter += 1;
  Serial.print("aquaLight: ");
  Serial.print(aquaLightReading);
  Serial.print(" rightLight: ");
  Serial.print(plantLightReading);
  Serial.print(" waterTemp: ");
  Serial.println(waterTempReading);
  Serial.print(" waterTurb: ");
  Serial.print(waterTurbReading);
}

//Script I found online and modifed using the OneWire, returns the temperature in fahrenheit.
float ReadTemp(){

    //light schduling 
    //turn lights off
    if(incomingByte == 1){
//       digitalWrite(RELAY1,0);
       powerIsOn = false;
    }
    //turn lights on
    if(incomingByte == 2){
//       digitalWrite(RELAY1,1);
       powerIsOn = true;
    }
  }
