       setup_watchdog(wdt_250ms); // set touch check interval
       while ( ((ay < (-10000)) || ay > (10000)) ) { // if the Avoccado device is resting in this position
         do_sleep(); // keep on sleeping
-        powerMode(1); // power up MEMS, wake up every watchdog timer interval
+        Serial.print(F("."));
+        mpu.setSleepEnabled(0); // power up MEMS, wake up every watchdog timer interval
         //        mpucheck();
         mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); // get the new acceleration values TODO: implement for ADXL345
+        //mpu.setSleepEnabled(1);
       }
       for (int _i = 0; _i < 2; _i++) { // vibrate briefly when waking up from hibernation mode
         vibr(1);

  delay(64);
  vibr(0); // stop vibrating
  // initialize devices
  Serial.println(F("avoccado aino 0.201406191627"));
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
  Serial.println(F("I2C setup"));
  Wire.begin(); // join I2C bus (I2Cdev library doesn't do this automatically)

        vibr(0);
        delay(56);
      }
      Serial.println();
      powerMode(1); // power up MEMS
      mpu.setStandbyXGyroEnabled(0);
      mpu.setStandbyYGyroEnabled(0);
