         int d  = Serial.parseInt(); //Third valid integer
         setTime(h,m,0,d,1,2014); //hour,min,sec,day,month,year
         t = now();
+        tDelay = runInterval;
+        tDelayMin = measureInterval;
         break;
       }
       case 'U':

}
//----- End pH functions

void lightSensor() 
{
  //int MIN_LIGHT = 200;
  //int MAX_LIGHT = 900;
  int val;
  
  val = analogRead(LIGHT);
  //val = map(val,MIN_LIGHT,MAX_LIGHT,0,255); // map analog 1024 -> digital pwm 256
  //val = constrain(val,0,255); // lowest and highest value of val allowed
  
  sensorTempData[2] = val;
}


  //We'll assign 2 BYTES variables to capture the LSB and MSB(or Hi Low in this case)
  byte adc_high;
  byte adc_low;

  Wire.requestFrom(ADDRESS, 2);        //requests 2 bytes
  if(Wire.available())
  {
  while(Wire.available() < 2);         //while two bytes to receive
  //Set em
  adc_high = Wire.read();
  adc_low = Wire.read();
  //now assemble them, remembering our byte maths a Union works well here as well
  adc_result = (adc_high * 256) + adc_low;
  //We have a our Raw pH reading fresh from the ADC now lets figure out what the pH is
  calcpH(adc_result);

  sensorTempData[3] = (int) pH;
