   pwm.setPWM(left_arm, 0, LEFT_ARM_OPEN);
   delay(500);
 }
+
+void reset_arms()
+{
+  // Sets left_arm and right_arm at their min and max values.
+  pwm.setPWM(left_arm, 0, LEFT_ARM_OPEN);
+  pwm.setPWM(right_arm, 0, RIGHT_ARM_OPEN);
+}
+
+void reset_ears()
+{
+  // Sets left_ear and right_ear at the middle.
+  pwm.setPWM(left_ear, 0, MIDDLE_EAR);
+  pwm.setPWM(right_ear, 0, MIDDLE_EAR);
+}

    noTone(speakerPin);
    normal_light_flag = 0;
  }
  
  if ( photocellReading > 950 && normal_light_flag ) //it is bright
  {
    tone(speakerPin, tones[9]); //play A
    delay(500);
    noTone(speakerPin);
    normal_light_flag = 0;
  }
  
  // check if manually moved

uint8_t left_ear = 2;
uint8_t right_ear = 3;

int kissed_flag = 0;
int normal_light_flag = 0;

int photocellPin = 0;     // the cell and 10K pulldown are connected to a0
