 Phant phant(server, publicKey, privateKey);
 
 // interval counters for measurement and post
-const int MEASUREMENT_RATE = 30000; // read sensor data every 30 sec
-const int POST_RATE = 15 * 60000; // post data every 15 minutes
+const unsigned int MEASUREMENT_RATE = 60000; // read sensor data every 60 sec
+const unsigned int POST_RATE = 15 * 60000; // post data every 15 minutes
 elapsedMillis lastMeasurement;
 elapsedMillis lastPost;
 
 void setup()
 {
   pinMode(led, OUTPUT);
-  pinMode(soilSensor1,INPUT);
+  pinMode(soilSensor1, INPUT);
+  pinMode(soilSensor2, INPUT);
+  pinMode(soilSensor3, INPUT);
   pinMode(soilPower, OUTPUT);
   digitalWrite(soilPower, LOW);
 

double humidity = 0;

// moisture sensor
const int soilPower = D4;
const int soilSensor1 = A0;
const int soilSensor2 = A1;
const int soilSensor3 = A2;
unsigned int soil1 = 0;

// SparkFun phant library
const char server[] = "data.sparkfun.com";

}

// read soil sensor data
int readSoilSensor(int soilSensor, int &soilValue) {
    digitalWrite(led, HIGH);
    digitalWrite(soilPower, HIGH); //turn sensor power on
    delay(10); // give some time to settle
    soilValue = analogRead(soilSensor);
    digitalWrite(soilPower, LOW); //turn sensor power off
    delay(190);
    digitalWrite(led, LOW);

    if (soilValue < soildThresholdLow) {
      return 1; // indicate soil is to low
    } else if (soilValue > soildThresholdHigh) {
      return 2; // indicate soil is to high
    } else {
      return 0; // indicate normal reading
    }
    return 0;
}

void dumpSerial() {
