 #define MFRC522_RSTO    (32)
 #define MFRC522_3V3     /* 3v3 */
 
-#define SOLENOID_GPIO     (14)
+#define SOLENOID_GPIO     (4)
+#define SOLENOID_OFF      (LOW)
+#define SOLENOID_ENGAGED  (HIGH)
+#define AARTLED_GPIO     (16)
 
 #define DOOR_OPEN_DELAY         (10*1000)   //  10 seconds -- how long to hold the relay engaged; in milli seconds.
 #define CACHE_FALLBACK_TIMEOUT  (500)       // 0.5 second  -- how long to wait for a reply before checking the cache.

  client.publish(log_topic, "Engaging solenoid");

  // Engage solenoid.
  digitalWrite(SOLENOID_GPIO, LOW);

  // according to Ticker examples - this will reset/overwrite
  // any already running tickers.


void closeDoor() {
  doorstate = CLOSED;
  digitalWrite(SOLENOID_GPIO, SOLENOID_OFF);
}

void openDoor() {
