# Issue with reading Arduino Port

**URL:** https://discourse.processing.org/t/issue-with-reading-arduino-port/7846
**Category:** Electronics (Arduino, etc.)
**Created:** [January 25, 2019, 8:52pm UTC](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846 "2019-01-25T20:52:38Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [January 30, 2019, 3:21pm UTC](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846/14 "2019-01-30T15:21:24Z")

</div>

and when you test your second processing code  
( what also is a firmata code )  
you changed arduino also from your sketch to firmata?

when your processing gives you a 0.0, did you measure voltage at that arduino pin?

//\_\_\_\_\_\_\_\_\_\_\_\_  
anyhow i try to play with your "second code "  
and yes, i got 0 too!!

now that was bad, as i just

- loaded firmata

- test my sketch and connect A0 to 5V and all ok

- test your sketch and it did not work…  
so i play until i see something,  
it was the baud rate ! 57600 !  
see all arduino ( firmata ) examples have that rate and  
[http://playground.arduino.cc/Interfacing/Processing](http://playground.arduino.cc/Interfacing/Processing)  
here too, even suggest you can omit that parameter?

 ![2019-01-30_22-09-19_snap](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2dfb382cf451ba96080573483b523e09f5a7ee62.png)  
yes the first reading again was 0.  
but then it worked fine.

and that again let me think why my code did not work in your setup?

- did you do the jumper cable?
- did you press the button?

---

_[View the full topic](https://discourse.processing.org/t/issue-with-reading-arduino-port/7846)._
