     } while (u8g.nextPage());
     delay(100);
 
+    //Action for the navigation button
     if (digitalRead(button) == HIGH) {
       draw_state++;
       delay(100);
+    } if (digitalRead(button) == LOW) {
+      delay(5000);
     }
     draw_state %= 6;
+
+    //Action for the SOS button
+    
 
     //call the blutooth function to send the message
     sendViaBluetooth();

  BTserial.print(temperature);
  BTserial.print(",");
  BTserial.print(bloodPressure);
  BTserial.print(",");
  BTserial.print("~");
}

  
}

//get the SOS button state 
int getSOSState(){

  if (digitalRead(buttonSOS) == HIGH) {
    return 1;
  }else if (digitalRead(buttonSOS) == LOW){
    return 0;
  }
}

