simples HTML para ethernet 4 saidas e 4 entradas

Boa noite caros amigos,

eu estou a tentar desenvolver uma aplicação HTML para o arduino com o shield enc28j60.
nao estou muito dentro da programação, contudo juntei alguns codigos de uns projectos e está a funcionar.
porem a pagina web está constantemente a actualizar, e o que realmente pretendia éra só actualizar as entradas de segundo a segundo.

deixo o código inacabado em baixo,

se alguém me poder ajudar agradeço,

Cumprimentos Daniel Oliveira

#include <SPI.h>
#include <UIPEthernet.h>

EthernetServer server = EthernetServer(1000);

const byte mainlightPin = 5;// Select pin for Main Light
const byte chandelierPin = 6;// Select pin for Chandelier Light
const byte fanPin = 7;// Select pin for Fan
const byte auxPin = 8;// Select pin for Auxillary Power Light
byte mac[] = { 0x00, 0x08, 0xDC, 0xAB, 0xCD, 0xEF };// Physical MAC address
byte ip[] = { 192, 168, 1, 22 };// Fixed IP address
byte gateway[] = { 192, 168, 1, 1 };// Router Gateway Internet access
byte subnet[] = { 255, 255, 255, 0 };// Subnet mask
String readString;

void setup()
{
pinMode(16, INPUT);
pinMode(15, INPUT);
pinMode(14, INPUT);
pinMode(9, INPUT);
delay(300);// Delay for Ethernet shield initialization (Arduino has 65mS Power Up delay and W5100 reset logic has 280mS)
pinMode(mainlightPin, OUTPUT);// Define pin for Main Light as Output
pinMode(chandelierPin, OUTPUT);// Define pin for Chandelier as Output
pinMode(fanPin, OUTPUT);// Define pin for Fan as Output
pinMode(auxPin, OUTPUT);// Define pin for Auxillary Power as Output
Serial.begin(9600);// Initialize serial communications at 9600 bps
Serial.println(F("Arduino UNO R3 with Ethernet Shiled W5100 - VU3GAO"));// Display Arduino title
Ethernet.begin(mac, ip, gateway, subnet);// Start Ethernet
server.begin();
Serial.print(F("Ethernet Shield initialized. Local IP address is:"));
Serial.println(Ethernet.localIP());// Print Server IP address
}
void loop()
{
EthernetClient client = server.available();// Create a client connection
if (client == true)
{
while (client.connected())
{
if (client.available())
{
char c = client.read();// Read char by char HTTP request
if (readString.length() < 100)
{
readString = readString + c;// Store characters to string
}
if (c == '\n')
{
Serial.println(readString);
client.println(F("http/1.1 200 ok"));// Send standard http headers
client.println(F("content-type: text/html"));
client.println();
client.println(F("<!doctype html>"));
client.println("<meta http-equiv="refresh" content="1">");
client.println(F(""));
client.println(F("Home Web Control"));
client.println(F("

Arduino UNO R3 Ethernet Shield Web Server(v1)

"));
client.println(F("

VU3GAO - Nitin William

"));
client.println(F("

Click the Buttons to turn On and OFF


"));
client.print(F("<input type=button value='Main Light ON' onmousedown=location.href='/?ML_on'>"));
client.println(F("<input type=button value='Main Light OFF' onmousedown=location.href='/?ML_off'>

"));
client.print(F("<input type=button value='Chandelier ON' onmousedown=location.href='/?Ch_on'>"));
client.println(F("<input type=button value='Chandelier OFF' onmousedown=location.href='/?Ch_off'>

"));
client.print(F("<input type=button value='Ceiling Fan ON' onmousedown=location.href='/?FN_on'>"));
client.println(F("<input type=button value='Ceiling Fan OFF' onmousedown=location.href='/?FN_off'>

"));
client.print(F("<input type=button value='Auxillary Power ON' onmousedown=location.href='/?AP_on'>"));
client.println(F("<input type=button value='Auxillary Power OFF' onmousedown=location.href='/?AP_off'>


")); client.print("

ENTRADA 9: ");

if (digitalRead(9))
{
client.println("

ON

");
}
else
{
client.println("

OFF

");
}
client.print("

ENTRADA 14: </2>");

if (digitalRead(14))
{
client.println("

ON

");
}
else
{
client.println("

OFF

");
}
client.print("

ENTRADA 15: </2>");

if (digitalRead(15))
{
client.println("

ON

");
}
else
{
client.println("

OFF

");
}
client.print("

ENTRADA 16: </2>");

if (digitalRead(16))
{
client.println("

ON

");
}
else
{
client.println("

OFF

");
}
client.println(F(""));
delay(1);// Page loading delay
client.stop();// Stopping client
if(readString.indexOf("/?ML_on") > 0) digitalWrite(mainlightPin, HIGH);// Switch on Main Light
if(readString.indexOf("/?ML_off") > 0) digitalWrite(mainlightPin, LOW);// Switch off Main Light
if(readString.indexOf("/?Ch_on") > 0) digitalWrite(chandelierPin, HIGH);// Switch on Chandelier Light
if(readString.indexOf("/?Ch_off") > 0) digitalWrite(chandelierPin, LOW);// Switch off Chandelier Light
if(readString.indexOf("/?FN_on") > 0) digitalWrite(fanPin, HIGH);// Switch on Fan
if(readString.indexOf("/?FN_off") > 0) digitalWrite(fanPin, LOW);// Switch off Fan
if(readString.indexOf("/?AP_on") > 0) digitalWrite(auxPin, HIGH);// Switch on Auxillary Power
if(readString.indexOf("/?AP_off") > 0) digitalWrite(auxPin, LOW);// Switch off Auxillary Power
readString = "";// Clearing string for next read
}// End of line reached
}// End of client available
}// End of client connected
}// End of client connection
}// End of loop

Só mudar a linha

client.println("<meta http-equiv=\"refresh\" content=\"1\">");

para

client.println("<meta http-equiv=\"refresh\" content=\"60\">");