   pinMode(redLed, OUTPUT);
   pinMode(greenLed, OUTPUT);
   pinMode(yellowLed, OUTPUT);
-  pinMode(routerPin, OUTPUT);
-  digitalWrite(routerPin, OUTPUT);
+  pinMode(routerPin1, OUTPUT);
+  pinMode(routerPin2, OUTPUT);
+  digitalWrite(routerPin1, OUTPUT);
+  digitalWrite(routerPin2, OUTPUT);
 
   flash_3leds(redLed, greenLed, yellowLed, 5, 100);
 

    unsigned long lowWord = word(packetBuffer[42], packetBuffer[43]);
    unsigned long secsSince1900 = highWord << 16 | lowWord;

    const unsigned long seventyYears = 2208988800UL;
    unsigned long epoch = secsSince1900 - seventyYears;
    setTime(epoch);
}



// checking connection
unsigned long lastConnectionTime = 0;
#define postingInterval 10000
boolean canConnect = false;
boolean canConnect_prev = false;

// setting time
#define TIMEZONE -6           // central standard time
//#define TIMEZONE -5         // central daylight time
IPAddress timeServer(129, 6, 15, 28); // time.nist.gov NTP server
#define NTP_PACKET_SIZE 48
byte packetBuffer[NTP_PACKET_SIZE];
WiFiUDP Udp;
char time_as_string[] = "12/20/1969 00:00:00";
