     }
   }
   delay(500);
+  
+  if(client.connected()) {
+     //handle client
+     String data = (String(lightTmin)+','+String(lightBmin)+','+String(lightFmin)+','+
+             String(lightThr)+','+String(lightBhr)+','+String(lightFhr)+','+
+             String(lightTdhr)+','+String(lightBdhr)+','+String(lightFdhr)+','+
+             String(lightTdmin)+','+String(lightBdmin)+','+String(lightFdmin)+','+
+             String(pumpFreq)+','+String(pumpD)+','+
+             String(setTemp)+','+
+             String(s)+','+String(m)+','+String(h)             
+             );
+     client.println(data);
+  }
+  else {
+     client = server.accept();
+      if (client.connected()) {
+         Serial.println("User is connected!");
+      } 
+  }
+  
   Serial.print(h);
   Serial.print(":");
   Serial.print(m);

  pinMode(8, OUTPUT);
  pinMode(9, INPUT);
  pinMode(A0, INPUT);
  Serial.begin(9600);
  // initialize timer1
  noInterrupts();           // disable all interrupts
  TCCR1A = 0;

#include <Bridge.h>
#include <Console.h>
#include <FileIO.h>
#include <HttpClient.h>
#include <Mailbox.h>
#include <Process.h>
#include <YunClient.h>
#include <YunServer.h>

/* MIT License
 *Hannon
 * channon@hawk.iit.edu
 *support@mecosystemlabs.com
 *
 *
 *
 */

#define YUN_SERVER_PORT 1993



/* Data Pins*/
#define lightT 3
#define lightB  4
