   return phant.particlePost();
 }
 
-
-byte readSensorData() {
-  byte status = readBMESensor();
-
-  soil1 = readSoilSensor(soilSensor1);
-
-  // todo define thresholds for dry, wet, max increase/decrease
-  // todo integrate the soil sensor value into status
-  return status;
-}
-
 // read BME280 sensor data
 byte readBMESensor() {
   double currentTemperature = 0;

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
elapsedMillis lastMeasurement;
elapsedMillis lastPost;

// 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";
