     if(distance < 50) {
       triggered = true;
     }
-  }
+  } 
 }
 
 void alarm(){

#define ALARM 3
float sinVal;
int toneVal;

Adafruit_NeoPixel strip = Adafruit_NeoPixel(10, LED_PIN, NEO_GRB + NEO_KHZ800);


  }
}

void alarmOff() {
  color(0, 0, 0);
  NewTone(ALARM, 0);
}

//helper function enabling us to send a colour in one command
void color (unsigned char red, unsigned char green, unsigned char blue)     // the color generating function
{
