 
 void extinguishFire(){
   while (detectFire()) {
+     if (detectFire()){
+      digitalWrite(FLAME_LED, HIGH);
+     } else {
+     digitalWrite(FLAME_LED, LOW);
+     }
+    
     if (frontUltrasonic.getDistance() > 3) {
       moveForward();
     } else {

  mazeNav();
  extinguishFire();
  delay(100);

  if (detectFire()){
    digitalWrite(FLAME_LED, HIGH);
  } else {
    digitalWrite(FLAME_LED, LOW);
  }
  
  if (usingCamera()){
    digitalWrite(CAMERA_LED, HIGH);


Ultrasonic frontUltrasonic(FRONT_US_ECHO, FRONT_US_TRIG, true);
Ultrasonic leftUltrasonic(LEFT_US_ECHO, LEFT_US_TRIG, true);
Ultrasonic rightUltrasonic(RIGHT_US_ECHO, RIGH_US_TRIG, true);

void moveForward() {
  leftServo.write(180);
