I am from Spain and I started recently with arduino and I need your help. I want to control arduino by ethernet by another arduino: the first arduino has a temperature sensor and I want to activate a pin in the second arduino when the temperature is 20ºC. Like Master and Slave if I use SPI.
The second arduino is going to be in other place.
Everything you need to make it compile. The digitalRead() will, presumably, be done on the Arduino that acts as a server, so the data is sent to clients using client.print(), not client.read(). The client.read() method takes no arguments, and is used on the client to read what the server sent.