         Serial.write(COFFEE_OFF);
         curState = COFFEE_OFF;
         Bean.disconnect();
+        digitalWrite(COFFEE_PIN, LOW);
         //disable relay
       }
     }

void setup() {
  Bean.enableWakeOnConnect(true);
  Bean.setBeanName("coffeebean");
  delay(5000);
}


            //trigger relay
            coffeeStartTime = millis();
            curState = COFFEE_BREW;
            digitalWrite(COFFEE_PIN, HIGH);
          }
          
          Serial.write(curState);//coffee is brewing
