 const int RAIN_THRESHOLD = 700;
 const int SENSOR_PIN = A0;
 const int BUZZER_PIN = 2;
-  
+
 const int SILENCE_COMMAND = 1;
 
 enum mode {SOUND_ON, SOUND_OFF};

    delay(pauseBetweenNotes);
  }
}

  if (Serial.available()) {
    if (Serial.read() == SILENCE_COMMAND) {
      deviceMode = SOUND_OFF;
    }
  }

  int sensorReading = 1023;//analogRead(SENSOR_PIN);

  bool isRaining = sensorReading < RAIN_THRESHOLD;

  sendMessage(isRaining, sensorReading);

  if (isRaining) {
    if (deviceMode != SOUND_OFF) {
      //Serial.println("I'm singing in the rain");
      //buzzerSound();
    }
  }
  else {
    deviceMode = SOUND_ON;
  }

  delay(1000 * 20); // delay between reads = 1 minute
}

void buzzerSound() {
