    Circuit:
    * Arduino UNO
    * Ethernet shield attached to pins 10, 11, 12, 13
-   * Water sensor attached to digitial pin 2
+   * Door sensor attached to digitial pin 2
    * Temperature/Humidity (DHT11) sensor attached to digital pin 3
+   * Water sensor attached to digital pin 8
  
    Created 22-JAN-2017 by Jon Brule
 ----------------------------------------------------------------------------- */

  Serial.begin(115200);
  mqtt.setup();
  dhts.setup();
  pinMode(DOOR_PIN, INPUT_PULLUP);
  attachInterrupt(digitalPinToInterrupt(DOOR_PIN), doorOpen, CHANGE);
  delay(1000);
  startup = false;
}

  last_interrupt_time = interrupt_time;
}

boolean isExposedToWater() {
  return (digitalRead(WATER_PIN) == LOW);
}
