I have a simple Python code that takes readings from a temperature sensor. I wish to send these readings (each time one is recorded in the code's while loop) to my laptop so the values can be used in real time in an application I have created on my laptop using Visual C#.
Therefore, I would like to be able to add code into my existing Python code that instead of simply printing the sensor readings on the Pi, sends the values to my laptop in a way that can be read by a C# app.
I don't have wireless internet on the Pi, so I intend to send the data via a cable such as an Ethernet cable.
Any advice on how I could achieve this would be very appreciated, thanks.