# How to read the value of each sensor from the Arduino

**URL:** <https://discourse.processing.org/t/how-to-read-the-value-of-each-sensor-from-the-arduino/36914>\
**Category:** Processing.py\
**Created:** [May 17, 2022, 8:37am UTC](https://discourse.processing.org/t/how-to-read-the-value-of-each-sensor-from-the-arduino/36914 "2022-05-17T08:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [June 11, 2022, 9:15pm UTC](https://discourse.processing.org/t/how-to-read-the-value-of-each-sensor-from-the-arduino/36914/8 "2022-06-11T21:15:53Z")

</div>

> [@GoToLoop](#):
>
> You can replace literal `0x0A` w/ constant [ENTER](http://processing.github.io/processing-javadocs/core/processing/core/PConstants.html#ENTER):  
> `myPort.bufferUntil(ENTER)`

> [@GoToLoop](#):
>
> Just realized I’ve already had a Python Mode example for the Serial library

I tried this and responded here:

> [@Read Serial Value (From Arduino)](https://discourse.processing.org/t/read-serial-value-from-arduino/5829/3):
>
> It does not work. This will work with Processing 3.5.4 Python mode: # Python Serial Reading # v1.0.0 # GLV 2022-06-11 add\_library("serial") myPort = Serial(this, "COM2", 9600) inString = "" def setup(): size(400, 100) # This does not work: #myPort.bufferUntil(ENTER) # This works: myPort.bufferUntil(0x0A) textSize(24); textAlign(LEFT, CENTER); fill(0); noLoop() def draw(): background(255); # I needed something here text (inString, 5…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/how-to-read-the-value-of-each-sensor-from-the-arduino/36914)._
