# Receiving data from Arduino

**URL:** <https://discourse.processing.org/t/receiving-data-from-arduino/11239>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [May 14, 2019, 7:48pm UTC](https://discourse.processing.org/t/receiving-data-from-arduino/11239 "2019-05-14T19:48:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [May 14, 2019, 8:11pm UTC](https://discourse.processing.org/t/receiving-data-from-arduino/11239/2 "2019-05-14T20:11:46Z")

</div>

> [@Using two different readStringUntil "characters"](https://discourse.processing.org/t/using-two-different-readstringuntil-characters/10769):
>
> Hello. I am not sure what to call the value inside the bufferUntil, but as my title implies I need to use two different characters, rather than just the newline (\n). Is it possible that, inside the serialEvent() function, I have something like ... void serialEvent(Serial port){ x = float(port.readStringUntil("X")); y = float(port.readStringUntil("Y")) } //statements ... where the values from serial look something like: (note: for the sake of using the values for Processing, I appende…

---

_[View the full topic](https://discourse.processing.org/t/receiving-data-from-arduino/11239)._
