   lcd.print("AccY:");
   lcd.print(event.acceleration.y);
   lcd.print(" m/s^2");
+  // using blocking delay debounces the accelerometer and gives the display time to refresh
   delay(250);
 }
 

  /* Get a new sensor event */
  sensors_event_t event;
  mma.getEvent(&event);

  lcd.clear();

  lcd.print("Revolutions: ");

    while (1);
  }
  mma.setRange(MMA8451_RANGE_8_G);
  
  lcd.print("Ready!");
  delay(1000);
  lcd.clear();
}

void loop() {
