I want to communicate with an Arduino MEGA 2560, that is connected on a ethernet and measures temperature. How do I do this? I need to receive data and send commands...where should I start from? Is this something that has to do with sockets programming I believe?
If you want to control it from a web browser, and see the data in a web browser, communication over a websocket is one of the ways to do it (GETs and Server Sent Events is another).
I made an example doing this using a websocket, but it uses WiFi and an ARM board (Nano 33 IoT). Maybe the code can help you on your way; it is here:
Maybe there is a ready-made dashboard solution for this somewhere already, but I didn't look for one, as I wanted to roll my own.