 
 // setup
 void setup() {
+  pinMode(START_BTN, INPUT);
+  pinMode(CLOUDBIT_IN, INPUT);
+  pinMode(STOP_BTN, INPUT);
   pinMode(SPEAKER_OUT, OUTPUT);
   pinMode(COUNTER_LED, OUTPUT);
   pinMode(CLOUDBIT_OUT, OUTPUT);

// if stop button is pressed, stop the timer. If it's already stopped, reset the timer
void checkStopButton() {
  boolean stopBtn = analogRead(STOP_BTN);
  if (stopBtn > 200 && stopBtnPrev == 0) {
    if (isStopped || melodyCount > 0) {
      reset();
    } else {

  digitalWrite(SPEAKER_OUT, blinkerValue);
}

// play the melody if melodyCount > 0
void playMelody() {  
  
