What this program do:
It creates a web server with Ethernet shield (e.g. DFRDruino) + Arduino (e.g. Duemilanove).
It generates an HTML page for the client that connects to my server (either locally or remotely) that displays:
– Two temperature values from two sensors Dallas One Wire 1820
– Switch ON or OFF a red LED as a function of the input sent by the client.
– Measure the brightness value with a LDR CdS photocell.
– Checks that the values of temperatures are still between a maximum and minimum, if not, it connects to the SMTP internet service provider to send an email alert.
In addition, you can easily add control more LED by extending the LED array in the sketch.
original post : http://jadiema.blogspot.kr/2011/04/arduino-simple-home-automation.html