+/* MIT License
+ * Hannon
+ * channon@hawk.iit.edu
+ * help? support@mecosystemlabs.com
+ * woot! go food
+ *
+ *
+ */
+
+//type 1 for yun 0 for other
+#define YUN 0
+//temp
+#include <OneWire.h>
+//humidity
+#include <DHT.h>
+//ph?
+#include <SoftwareSerial.h>
+//yun
 #include <Bridge.h>
 #include <Console.h>
 #include <FileIO.h>

  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 ++
    m++;
    s = 0;
    //check sched flag
    sched = 1;
  }
  if (m == 60) {
    h++;
    m = 0;
  }
  if (h == 24) {
    h = 0;
  }
}
void loop() {
  // put your main code here, to run repeatedly:
  if (sched) {

int pumpD = 210; // sec
//temp
int setTemp = 78;
////////////////    time   //////////////////
int s = 55;
int m = 25;
int h = 10;
////////////////   END time    ///////////////

//flag
int sched = 0;

/////////////////////   server stuff   /////////////////
#ifdef YUN
YunServer server(YUN_SERVER_PORT);
YunClient client;
#endif /* YUN */
////////////////////  End Server Stuff //////////////////

////////////////////// SETUP STUFF  ///////////////////////
void setup() {
  // put your setup code here, to run once:
  pinMode(lightT, OUTPUT);
  pinMode(lightB, OUTPUT);
  pinMode(lightF, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
