   getSoilMeasurements();
   readLightResistor();
   readMoistureSensor();
-  outputEvent(am, lightResistor, sm);
-  sendToKeen(am, lightResistor, sm);
+  outputEvent();
+  sendToKeen();
 
   // We run this once a minute, approximately
   delay(60000);

  Console.flush();
}

void outputEvent(struct my_airmeasurement, int lightResistor, struct my_soilmeasurement) {  
  String my_output = "";
  my_output += "AppId:";
  my_output += appId;

  sm.tempSoilF = sm.tempSoilC*9/5+32;
}

void sendToKeen() {  
  String my_output = "{";
  my_output += "\"AppId\":\"";
  my_output += appId;
