  * function or even in the data logger.
  */
 void LogData(){
+  if(bufferCounter >= 64) return;
   lightR = analogRead(lightSensorR);
   lightL = analogRead(lightSensorL);
   waterTemp = analogRead(waterTempSensor);

  lightLBuffer[0] = 1792;
  tempBuffer[0] = 1793;
  turbBuffer[0] = 1794;
  pHRBuffer[0] = 1795;
}

void loop() {

  bufferCounter += 1;
}

//im sure there is a better way, consider a timeout? 
//we'll need to check for missed or overwritten data 
//because this might take to long
void SendData(){
  if(bufferCounter >= 64){
    SendBuffer(lightRBuffer);
    SendBuffer(lightLBuffer);
    SendBuffer(tempBuffer);
    SendBuffer(turbBuffer);
    SendBuffer(pHBuffer);
    bufferCounter = 1;
  }
}

void SendBuffer(int buf[]){
  for(int i = 0; i < 64; i++){
    Serial.write(buf[i]);
  }
}

