   if (isnan(maxRecordKph)) {
     maxRecordKph = 0.0;
   }
+  
+  EEPROM.get(MAX_RECORD_ACCEL_Y_ADDRESS, maxRecordAccelY);
+  if (isnan(maxRecordAccelY)) {
+    maxRecordAccelY = 0.0;
+  }
 
   lcd.print("Max kph: ");
   lcd.print(maxRecordKph);
   lcd.setCursor(0,1);
   lcd.print("Max mph: ");
   lcd.print(kphToMph(maxRecordKph));
+  
+  delay(2000);
+  lcd.clear();
+  
+  lcd.print("Max Accel Y: ");
+  lcd.setCursor(0,1);
+  lcd.print(maxRecordAccelY);
+  lcd.print(" m/s^2");
   
   delay(2000);
   lcd.clear();

  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);

void setMaxSpeed(double k) {
  EEPROM.put(MAX_RECORD_KPH_ADDRESS, k); 
}

void setMaxAccelY(double a) {
  EEPROM.put(MAX_RECORD_ACCEL_Y_ADDRESS, a);  
}
