 #define heater 7
 #define other 8
 #define temp 9
+#define tempPlant 10
+#define tempMush 11
+
 #define ph A0
+
+
+////////////////////////////////   humidity  /////////////////////////////
+#define DHTPIN 12     // what pin we're connected to
+#define DHTTYPE DHT22   // DHT 22  (AM2302)
+// Initialize DHT sensor for normal 16mhz Arduino
+DHT dht(DHTPIN, DHTTYPE);
+// NOTE: For working with a faster chip, like an Arduino Due or Teensy, you
+// might need to increase the threshold for cycle counts considered a 1 or 0.
+// You can do this by passing a 3rd parameter for this threshold.  It's a bit
+// of fiddling to find the right value, but in general the faster the CPU the
+// higher the value.  The default for a 16mhz AVR is a value of 6.  For an
+// Arduino Due that runs at 84mhz a value of 30 works.
+// Example to initialize DHT sensor for Arduino Due:
+//DHT dht(DHTPIN, DHTTYPE, 30);
+/////////////////////////////    end humidity   //////////////////////////
+
+//TODO: flippin organize this better
 
 //global variables
 //data variables

      }
    }
    if (m == (lightBmin + lightBdmin)) {
      if (h == (lightBhr + lightBdhr)%24) {
        relayOff(lightB);
      }
    }

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