How can i connect and send data between two arduinos using a ENC28J60 ethernet adapters on both of them. Is there any guides or example codes for me to take a look from or any library which i can use to achieve this communication?
I have one arduino connected to an ultrasound sensor and the other to an relay module so that one arduino measures the distance between certain objects and send the distance to the other arduino which then processes it to check if it is within a certain limit if not then turn on the relay. I could have used two esp32 with one in AP mode but the range is not enough and serial communication is not possible as the cables are fragile and the distance is too large and also i couldnt find another way of sending the data.
Open to any suggestions even changing the method of communication? or using of any other ethernet modules?