  * After an hour has passed, auto mode will turn back on.
  */
 void GetManual(){
-  if(digitalRead(lightButton)){
-    digitalWrite(RELAY1, powerIsOn);
-    powerIsOn = !powerIsOn;
-    autoTimer = millis();
-  }
+//  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);
-}
+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(){

#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

float plantLightReading = 0.0;
float waterTempReading = 0.0;
float waterTurbReading = 0.0;
float ovenTempReading = 0.0;

uint8_t bufferCounter = 1;

bool powerIsOn = true;

uint8_t incomingByte;

