   Serial.println();
 }
 
-void setup() {
-  //Initialize serial and wait for port to open:
+void setup()
+{
+
   Serial.begin(9600);
 
-  // check for the presence of the shield:
-  if (WiFi.status() == WL_NO_SHIELD) {
-    Serial.println("WiFi shield not present");
-    // don't continue:
-    while (true);
+  // start the Ethernet connection:
+  if (Ethernet.begin(mac) == 0) {
+    Serial.println(F("Failed to configure Ethernet using DHCP"));
+    // no point in carrying on, so do nothing forevermore:
+    for(;;)
+      ;
   }
-
-  String fv = WiFi.firmwareVersion();
-  if ( fv != "1.1.0" )
-    Serial.println("Please upgrade the firmware");
+  
 }
 
-void loop() {
+void loop()
+{
   //we need to call loop for the mqtt library to do its thing and send/receive our messages
   if(skynet.loop()){
   

//another UUID well send a message to
char TOUUID[] = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; 

WiFiClient client;
PubSubClient skynet(server, 1883, onMessage, client);

//we'll run this if anyone messages us

  {
    //oops we're not connected yet or we lost connection
    Serial.println(F("connecting..."));
      
    // skynet doesnt use client so send empty client string and YOUR UUID and token
    if (skynet.connect("", UUID, TOKEN)){
