# 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:** 6

<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 17, 2022, 10:41pm UTC](https://discourse.processing.org/t/how-to-read-the-value-of-each-sensor-from-the-arduino/36914/6 "2022-05-17T22:41:18Z")

</div>

Just realized I’ve already had a Python Mode example for the Serial library, but for a single value: 🐍

> [@Read Serial Value (From Arduino)](https://discourse.processing.org/t/read-serial-value-from-arduino/5829/2):
>
> This is my lousy attempt to convert an old Java Mode sketch from the link below to Python Mode: snake[Forum.Processing.org/two/discussion/16618/processing-with-arduino-void-serialevent#Item\_5](http://Forum.Processing.org/two/discussion/16618/processing-with-arduino-void-serialevent#Item_5) """ \* Efficient Serial Reading (v1.01) \* GoToLoop (2018-Nov-22) \* \* Discourse.Processing.org/t/read-serial-value-from-arduino/5829/2 \* \* Forum.Processing.org/two/discussion/16618/ \* processing-with-arduino-void-serialevent#Item\_5 """ add\_library('serial') PORT\_INDEX, BAUDS = 0, 9600 myString =…

---

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