Code Update

(Change for Chapter 5 Interactive Serial Monitor Programs)

This change is needed for all new versions of the Arduino IDE and applies to code listings: 5-2, 5-3, and 5-8. The code has been updated on GitHub. After the code line for Serial.read, we added the following:

if (The Serial Read Variable ! = 10) {

//The code ! = 10 ignores the value 10 (the value sent when pressing the enter key). Also, add a closing brace at the end of the main loop.

}