 //run once on start
 void setup() {
   Serial.begin(9600);
-  plantLightBuffer[0] = 1791;
-  aquaLightBuffer[0] = 1792;
-  tempBuffer[0] = 1793;
-  turbBuffer[0] = 1794;
+  Serial.println("hi");
   pinMode(plantLed, OUTPUT);
   pinMode(aquaLed, OUTPUT);
   pinMode(turbLed, OUTPUT);
   pinMode(tempLed, OUTPUT);
   pinMode(lightButton, INPUT);
   digitalWrite(lightButton, HIGH);
+  pinMode(RELAY1, OUTPUT);
+  digitalWrite(RELAY1, HIGH);
 }
 
 //main program loop.
 void loop() {
-  LogData();
   SendData();
   SendCommands();
   GetManual();

#include "OneWire.h"

//analog pins
#define plantLight A0
#define aquaLight A1
#define waterTurbSensor A2

//digital pins
OneWire  ds(2); //water temp sensor
#define RELAY1  3
#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 SendData(){
  String mystr = "['data', {'station': 'aquaponicStation', 'sensors': [{'sensor': 'aquaLight', 'value': ";
  mystr += analogRead(aquaLight) ;
  mystr += "},{'sensor':'plantLight','value':";
  mystr += analogRead(plantLight);
  mystr += "},{'sensor':'waterTurb','value':";
  mystr += analogRead(waterTurbSensor);
//  mystr += "},{'sensor':'waterTemp','value':";
//  mystr += ReadTemp();
  mystr += "},{'sensor':'OvenTemp','value':";
  mystr += analogRead(ovenTemp);
  mystr += "}]}]";
  Serial.println(mystr);
}


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