 }
 
 void readMoistureSensor() {
+  digitalWrite(hygroPower, HIGH);
+  delay(1000); // nasty hack to wait for moisture drivers
   moistureSensorVal = analogRead(hygroPin);
+  digitalWrite(hygroPower, LOW);
   moisturePercent = reversemap(moistureSensorVal, moistureMinVal, moistureMaxVal, 0, 100);
 }
 

  if (currentMillis - prevMinFiveMillis > minFiveInterval) {
    prevMinFiveMillis = currentMillis;
    
    switchLights();
  }


//===== For hygrometer ==========================
byte moisturePercent;
const byte hygroPin = A1;
const byte hygroPower = A3;
int moistureSensorVal;

//===== For moisture readings ====================
// todo - find right value for these
const int moistureMaxVal = 255;
const int moistureMinVal = 982; 
int moistureThreshold = 1000; // <- made this up

//===== For water level sensor ===================
