Breaking a while loop

Duplicate question, already answered over here.

How many answers do you want?

232:
Can't do code tags when copying code.

What?

  1. Copy the code (control-C) from somewhere.
  2. Paste the code (control-V) into the post editor.
  3. Select the pasted code (mouse click-drag-release OR control-A).
  4. Click "</>" button in upper left (adds code tags around selected text).
  5. Enter extra descriptive text before or after code tags.
  6. Click "Post" or "Preview" button in lower left (interprets tags to show code in white box).

If you're mouse-averse, you can just type left bracket, c, o, d, e, and right bracket before the code. Then arrow down to the end of the code and type left bracket, slash, c, o, d, e and right bracket after the code.

Example:

```
**IN PSEUDOCODE  not to be cut and paste !

[nobbc][code]int sensor = A0; //temp sensor on pin A0
int temp = 0; //do not change
int relay = 5;  //relay is on pin 5

void setup() {
  pinMode(sensor, INPUT);  //set sensor as input
  pinMode(relay, OUTPUT);  //set relay as output
}
  etc.
[/code][/nobbc]

...more commentary...**
```