# Serial Communication / Arduino to Processing

**URL:** <https://discourse.processing.org/t/serial-communication-arduino-to-processing/31528>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [August 1, 2021, 9:53am UTC](https://discourse.processing.org/t/serial-communication-arduino-to-processing/31528 "2021-08-01T09:53:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MJAhmadi](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@MJAhmadi](https://discourse.processing.org/u/MJAhmadi)\
**Post date:** [August 1, 2021, 9:53am UTC](https://discourse.processing.org/t/serial-communication-arduino-to-processing/31528/1 "2021-08-01T09:53:23Z")

</div>

Below is a part of my code :

Serial.write(‘A’);

// Print float data  
for (int i=0; i\<4; i++){  
Serial.write(myValue1.bytes[i]);  
delay(10);  
}  
// Print terminator  
Serial.print(’\n’);

3 value have been sent to serial, but I just want to receive "Serial.write(myValue1.bytes[i]) " value in processing;

it means that I need to define a header and terminator in processing;

help me for that:)

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 1, 2021, 8:35pm UTC](https://discourse.processing.org/t/serial-communication-arduino-to-processing/31528/2 "2021-08-01T20:35:10Z")

</div>

> [@MJAhmadi](#):
>
> help me for that:)

Can you please format your code as per:  
[https://discourse.processing.org/faq#format-your-code](https://discourse.processing.org/faq#format-your-code)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a1af33d5a06d834fcde092c8d686a6e05f96e7b6.png)

There are resources (tutorials, references, examples) here:  
[https://processing.org/](https://processing.org/)

Take a look at the resources related to _ **serial** _ and you will find your answer there.

`:)`
