Error in read 1 value by serial

I'm having a problem with my code where, in the Arduino serial monitor, when I click a button, it displays a value in the serial monitor. However, when I transfer it to MIT, I can't read this value, and I don't know why.



image

I have not used the Serial component yet, but I imagine this technique would avoid empty read returns wiping out previous input:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.