   // Setup Serial connection
   Serial.begin(9600);
 
+  // Ethernet setup
+  ethernetSetup();
+
   // Initialize the rtc object
   rtc.begin();
   setCurrentTime(10, 0, 0);     // Set the time to 12:00:00 (24hr format)
 
   //set digital pins as outputs
-  pinMode(relay_1, OUTPUT);  
-  pinMode(relay_2, OUTPUT);  
-  pinMode(relay_3, OUTPUT);  
-  pinMode(relay_4, OUTPUT);
+  pinMode(relay_4, OUTPUT);  
+  pinMode(relay_5, OUTPUT);  
+  pinMode(relay_6, OUTPUT);  
+  pinMode(relay_7, OUTPUT);
   
   //-------( Initialize Pins so relays are inactive at reset)----
-  digitalWrite(relay_1, RELAY_OFF);
-  digitalWrite(relay_2, RELAY_OFF);
-  digitalWrite(relay_3, RELAY_OFF);
-  digitalWrite(relay_4, RELAY_OFF);  
+  digitalWrite(relay_4, RELAY_OFF);
+  digitalWrite(relay_5, RELAY_OFF);
+  digitalWrite(relay_6, RELAY_OFF);
+  digitalWrite(relay_7, RELAY_OFF);  
       
   delay(4000); //Check that all relays are inactive at 
 

void loop() {

  delay (2000);
  turnRelayOn(2, "relay");
  // Wait one second before repeating :)
  delay (1000);
  turnRelayOff(2, "relay");
  delay (2000);

//  t = rtc.getTimeStr();

  Serial.println(rtc.getTimeStr());

//  checkTemp(insideThermometer);
}

void checkTemp(DeviceAddress deviceAddress) {

#include <DallasTemperature.h>
#include <OneWire.h>
#include <DS3231.h>
#include <SPI.h>
#include <Ethernet.h>

// Define OneWire pin
#define ONE_WIRE_BUS 9

// Define Relay Digital I/O pin number and names
#define RELAY_ON LOW
#define RELAY_OFF HIGH
#define relay_1  2  // SSR
String relay_1_name = "Heater";
#define relay_2  3  // SSR
String relay_2_name = "Lighting";
#define relay_3  4  // SSR
String relay_3_name = "CO2";
#define relay_4  5  // 
String relay_4_name = "Pump1";
#define relay_5  6  // 
String relay_5_name = "Pump2";
#define relay_6  7  // 
String relay_6_name = "Pump3";
#define relay_7  8  // 
String relay_7_name = "Pump4";

// Ethernet init
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
IPAddress ip(192, 168, 0, 177);
EthernetServer server(80);

void ethernetSetup() {
  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}

// Init the DS3231 using the hardware interface
DS3231  rtc(SDA, SCL);
