     }
   }
   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);

// MIT License
//Hannon
// channon@hawk.iit.edu
//support@mecosystemlabs.com
/* Data Pins*/
#define lightT 3
#define lightB  4

  TCCR1B |= (1 << CS12);    // 256 prescaler
  TIMSK1 |= (1 << OCIE1A);  // enable timer compare interrupt
  interrupts();             // enable all interrupts

//setup bridge
  Bridge.begin();
  server.listenOnLocalhost();
  server.begin();

}


ISR(TIMER1_COMPA_vect) {          // timer compare interrupt service routine
  s++;
  if (s == 60) {
    //mina ++
