   byte data[12];
   byte addr[8];
 
-  if ( !ds.search(addr)) {
+  if ( !myPT.search(addr)) {
       //no more sensors on chain, reset search
-      ds.reset_search();
+      myPT.reset_search();
       Serial.println("No probe sensor detected");
       Console.println("No probe sensor detected");
   }

void setup() {
  Serial.begin(9600); 
  Serial.println("PlantStation is warming up\n");
  dht.begin();

  Bridge.begin();
  Console.begin();

  while (!Console) { ; }
  Console.print("\nPlantStation is warming up.\nYun Console is warming up.\nNow With Keen.\n\n");

  while (!Serial);
}

void loop() {

  delay(60000);
  am = getAirMeasurements();
  sm = getSoilMeasurements();
  lightResistor = analogRead(lightPin);

  my_output += waterPumpStatus;
  my_output += "}";
    
  myKeen.setApiVersion(F("3.0"));
  myKeen.setProjectId(KEEN_PROJECT_ID);
  myKeen.setWriteKey(KEEN_WRITE_KEY);
 
  myKeen.addEvent("arduino_board_test", my_output);
  myKeen.printRequest();

  Console.println();

  while (myKeen.available()) {
    char c = myKeen.read();
    Console.print(c);
  }
  Console.println();
