 
 volatile int switchPinState1 = HIGH;
 volatile int switchPinState2 = HIGH;
+int switchPinState3 = HIGH;
+int switchPinState4 = HIGH;
+int switchPinState5 = HIGH;
+int switchPinState6 = HIGH;
+int switchPinState7 = HIGH;
+int switchPinState8 = HIGH;
+
 float currentTemperature = 0;
 
+//set up ethernet server stuff
+byte ip[] = { 192, 168, 1, 177 };   // IP Address
+byte subnet[] = { 255, 255, 255, 0 }; // Subnet Mask
+byte gateway[] = { 192, 168, 1, 1 }; // Gateway
+byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; // MAC Address
+
+EthernetServer server = EthernetServer(80); // Port 80
+String HTTPget = "";
+
+boolean reading = false;
+
 void setup() {
+  Serial.begin(9600);
+  while (!Serial) {
+    ; // wait for serial port to connect. Needed for native USB port only
+  }
   pinMode(switchPin1, INPUT);
   pinMode(switchPin2, INPUT);
   pinMode(relayPin1, OUTPUT);

  digitalWrite(relayPin6, HIGH);
  digitalWrite(relayPin7, HIGH);
  digitalWrite(relayPin8, HIGH);
  // initialize serial communication:
  Serial.begin(9600);
}

void loop() {
  //keep the relay state
  digitalWrite(relayPin1, switchPinState1);
  digitalWrite(relayPin2, switchPinState2);

  //read temperature
  readTemperature();
}

void readTemperature(){
  int rawvoltage= analogRead(temperaturePin);
  currentTemperature = (rawvoltage * 0.004882812 * 100)- 2.5 - 273.15;
}
void handleSwitch1() {
  Serial.println("switching relay 1");
  switchPinState1 = !switchPinState1;
}

void handleSwitch2() {
  Serial.println("switching relay 2");
  switchPinState2 = !switchPinState2;
}

 * Digital Pins Usable For Interrupts - 2, 3, 18, 19, 20, 21
 * 
 */

#include <SPI.h>
#include <Ethernet.h>

static unsigned long lastMillis = 0; // holds the last read millis()
static int timer_1 = 0; // a repeating timer max time 32768 mS = 32sec use a long if you need a longer timer
// NOTE timer MUST be a signed number int or long as the code relies on timer_1 being able to be negative
// NOTE timer_1 is a signed int
#define TIMER_INTERVAL_1 10000

const int  switchPin1 = 20;
const int  switchPin2 = 21;
