 void loop(){
   Serial.print("Alarm delay: "); Serial.println(alarmDuration);
   if(triggered == true && alarmDuration < MAX_ALARM_TIME) {
-    alarmDuration += 250;
+    alarmDuration += 600;
     alarm();
   } else if(triggered == true) {
     alarmDuration = 0;

#define TRIGGER_PIN  6  // Arduino pin tied to trigger pin on the ultrasonic sensor.
#define ECHO_PIN     7  // Arduino pin tied to echo pin on the ultrasonic sensor.
#define MAX_DISTANCE 100 // Maximum distance we want to ping for (in centimeters).

#define ALARM 3
float sinVal;


void alarm(){
  color(225,0,178);    //red
  delay(100);
  color(0,199,225);  //yelow
  delay(100);
  color(4,225,0);
  delay(100);
  color(109,57,1);
  delay(100);
  color(8,0,225);
  delay(100);
  color(242,225,0);
  delay(100);
  for (int x=0; x<180; x++) {
    // convert degrees to radians then obtain sin value
    sinVal = (sin(x*(3.1412/180)));
