 
   sensor.init();
   
-  sensor.setFluidDensity(997); // kg/m^3 (997 freshwater, 1029 for seawater)
+  sensor.setFluidDensity(1001); // kg/m^3 (997 freshwater, 1029 for seawater)
 }
 
 void loop() {
 
+  //float depthSavedState = 0;
+  //bool lockedZ = false;
   sensor.read();
 
   Serial.print("Pressure: "); 

  
  Serial.print("Depth: "); 
  Serial.print(sensor.depth()); 
  Serial.println(" m");
  
  Serial.print("Altitude: "); 
  Serial.print(sensor.altitude()); 
  Serial.println(" m above mean sea level");

  delay(1000);
}





void setup() {
  
  //pinMode(##buttonPin##, INPUT);
  Serial.begin(9600);
  
  Serial.println("Starting");
