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


void setup() {
  
  Serial.begin(9600);
  
  Serial.println("Starting");

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

  /*
  buttonState = digitalRead(##buttonPin##);
  // if putton pressed, ACTIVATE Z
  if(buttonState == HIGH && !lockedZ){
    depthSavedState = sensor.depth();
    lockedZ = true;
  }
  // if putton pressed, DEACTIVATE Z
  if(buttonState == HIGH && lockedZ){
    depthSavedState = sensor.depth();
    lockedZ = false;
  }
    // if Z STABLAIZATION = ACTIVE
    while(lockedZ){
    // if ROV is above saved state
      if(sensor.depth() > depthSavedState){
          // Move ROV DOWN
      }
    // if ROV is below saved state
      if(sensor.depth() < depthSavedState){
          // Move ROV UP
      }
      
    }
    

*/
  
  delay(1000);
}
