# Sending sensor data from Arduino to PC over ethernet

**URL:** <https://forum.arduino.cc/t/sending-sensor-data-from-arduino-to-pc-over-ethernet/664923>\
**Category:** General Guidance\
**Created:** [July 10, 2020, 5:19pm UTC](https://forum.arduino.cc/t/sending-sensor-data-from-arduino-to-pc-over-ethernet/664923 "2020-07-10T17:19:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobbitsch](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jacobbitsch/32/520603_2.png) [@jacobbitsch](https://forum.arduino.cc/u/jacobbitsch)\
**Post date:** [July 10, 2020, 5:19pm UTC](https://forum.arduino.cc/t/sending-sensor-data-from-arduino-to-pc-over-ethernet/664923/1 "2020-07-10T17:19:56Z")

</div>

Hi,

I'm looking to read data (Analog) with an Arduino, and then send it over Ehternet/UDP to a PC, with a direct RJ45 cable.

I've got the Ehternet shield and Arduino, but I cannot find any examples or advice on how to do this.

Ideally I'd like to read the data with Python (on PC), to plot (real-time) and save (log) the data. But right now, my main concern is the communication.

The reason I chose the Ethernet/UDP/RJ45 solution is because the cables are long (\>50 meters) and the data transfer is fast (12-bit w. 10 kHz sampling). - So I am not looking to connect the Arduino to the internet - only data transfer between the microcontroller and the PC.

Any help will be much appreciated.

Note: I've looked at the Ethernet sketch and the first two Google pages without any luck.

---

<div class="post-metadata">

**Author:** ![blh64](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/blh64/32/605986_2.png) [@blh64](https://forum.arduino.cc/u/blh64)\
**Post date:** [July 10, 2020, 6:40pm UTC](https://forum.arduino.cc/t/sending-sensor-data-from-arduino-to-pc-over-ethernet/664923/2 "2020-07-10T18:40:29Z")

</div>

Look at the telnetClient example that comes with the Ethernet library. You will need to implement the other side on your PC in Python. After you get that implemented, it basically turns into a transfer that is very similar to Serial.

---

<div class="post-metadata">

**Author:** ![doulos30](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@doulos30](https://forum.arduino.cc/u/doulos30)\
**Post date:** [July 10, 2020, 6:58pm UTC](https://forum.arduino.cc/t/sending-sensor-data-from-arduino-to-pc-over-ethernet/664923/3 "2020-07-10T18:58:14Z")

</div>

this took me 2 seconds to find and I've seen several of his videos great guy.

[https://toptechboy.com/python-with-arduino-lesson-16-simple-client-server-configuration-over-ethernet/](https://toptechboy.com/python-with-arduino-lesson-16-simple-client-server-configuration-over-ethernet/)

[https://toptechboy.com/python-with-arduino-lesson-17-sending-and-receiving-data-over-ethernet/](https://toptechboy.com/python-with-arduino-lesson-17-sending-and-receiving-data-over-ethernet/)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 7:16pm UTC](https://forum.arduino.cc/t/sending-sensor-data-from-arduino-to-pc-over-ethernet/664923/4 "2021-05-05T19:16:46Z")

</div>

Closed on May 5, 2021, 7:16pm UTC


