   
   // Check if we got a signal right now
   triggerCheck();
-}
+ 
+  #ifdef USE_NETWORK 
+    // Check if we got an incoming connection to our server
+    serverCheck();
+  #endif
+}
+
+void serverCheck()
+{
+  #ifdef USE_ETHERNET_SHIELD
+    EthernetClient client = server.available();
+  #endif
+  #ifdef USE_WIFI_SHIELD
+    WiFiClient client = server.available();
+  #endif
+  #ifdef USE_NETWORK
+    // Check for a new connection
+    if (client)
+    {
+      Serial.println("Got a connection!");
+      client.stop();
+    }
+  #endif
+}
+
 
 // All the Ethernet related methods only needed when the shield is used
 #ifdef USE_ETHERNET_SHIELD

  
  pinMode(TRIGGER_PIN, INPUT);
  
  #ifdef USE_WIFI_SHIELD
    useNetwork = true;
    wifiConnect();
  #endif
  #ifdef USE_ETHERNET_SHIELD
    useNetwork = true;
    ethernetConnect();
  #endif
  #ifdef USE_STROMBEWUSST_SERVER
    strombewusstInit();
  #endif
}

void strombewusstInit()
{
  // Make sure we have either the Ethernet or WiFi shield enabled
  if (useNetwork == false)
  {
    return;
  }

  udpBuffer[32] = TIMEFRAME;
  udp.begin(STROMBEWUSST_PORT);
}

void loop()

void strombewusstPush()
{
  // Make sure we have either the Ethernet or WiFi shield enabled
  #ifdef USE_NETWORK  
    // Set the last byte the the current frame's value
    udpBuffer[33] = storage[storagePointer];
    udp.beginPacket(STROMBEWUSST_SERVER, STROMBEWUSST_PORT);
    udp.write(udpBuffer);
    udp.endPacket();
  #endif
}

void pointerChanged()
