Receive the state of a pin by the ethernet shield

I remake my post, top of this topic.

thank you