     opMode = alarm;
     blinkRate = alarmBlinkRate;
   }
+  else {
+    EEPROM.write(eepromModeAddress, opMode);
+  }
 
   //Setup Bluetooth/serial
   //Even though they might not be used (based on mode), activate them anyways so that the

        reconfiguration(); //Start reconfiguration code
      }
      else if (input == '1') { //alarm has been rung
        speaker();
      }

    }


void loop() {
  //Sensor has been triggered or serial has been triggered
  //Communications dictionary: '1' = alarm, '2' = heartbeat, '5' = reconfiguration
  //Reconfiguration protocol: "5 *mode*" ('5' signals that the next command is a reconfiguration, then a space, then the mode (0=sensor, 1=alarm, 2=query))
  //Todo: in laptop relay, program it to only forward the communications dictionary commands, need a way to signal groups of communications
  //Todo: include fluctuation tolerance (e.g. 10 activations required before alarm)
  //Todo: heartbeat communications
  //Todo: communications on the serial interfaces may have varying length. Account for it
  //DONE Todo: slow down bluetooth send rate. It's too fast and will leave an alarm on forever.
  
  if (opMode == sensor) {
    waterReadings();
  }
  
  if (Serial.available()) { //DO NOT allow mode reconfiguration via bluetooth. Security hazard.

    if (opMode == alarm) { //What if the Serial command was triggered to reconfigure? (CHECK WITH EUGEN THAT POWER AND USB COMBINED WON'T FRY THE BOARD!)
