user10473: How do I put the sensor value and text on the one line in the serial monitor.
I just want Pot Value 30 to show in the serial console. What am I doing wrong?
Serial.println("POT value ")(sensorValue);


user4143: You just do two Serial prints:
Serial.print("POT value ");
Serial.println(sensorValue);

The .print prints without moving to a new line, the .println moves to a new line.
If you want to be more fancy and don't mind the processing and memory overhead, you can use snprintf to format the string:
char temp[15];
snprintf(temp, 15, "POT value %4d", sensorValue);
Serial.println(temp);

You can read more about sprintf and formatting here: 

http://www.cplusplus.com/reference/cstdio/snprintf/ (function parameters)
http://www.cplusplus.com/reference/cstdio/printf/ (formatting options)

Note that there is no floating point support in the standard library for the Arduino - so you can't use %f etc.

10473: <p><strong>How do I put the sensor value and text on the one line in the serial monitor.</strong></p>

<p>I just want Pot Value 30 to show in the serial console. What am I doing wrong?</p>

<pre><code>Serial.println("POT value ")(sensorValue);
</code></pre>
 4143: <p>You just do two Serial prints:</p>

<pre><code>Serial.print("POT value ");
Serial.println(sensorValue);
</code></pre>

<p>The <code>.print</code> prints without moving to a new line, the <code>.println</code> moves to a new line.</p>

<p>If you want to be more fancy and don't mind the processing and memory overhead, you can use <code>snprintf</code> to format the string:</p>

<pre><code>char temp[15];
snprintf(temp, 15, "POT value %4d", sensorValue);
Serial.println(temp);
</code></pre>

<p>You can read more about <code>sprintf</code> and formatting here: </p>

<ul>
<li><a href="http://www.cplusplus.com/reference/cstdio/snprintf/" rel="nofollow">http://www.cplusplus.com/reference/cstdio/snprintf/</a> (function parameters)</li>
<li><a href="http://www.cplusplus.com/reference/cstdio/printf/" rel="nofollow">http://www.cplusplus.com/reference/cstdio/printf/</a> (formatting options)</li>
</ul>

<p><strong>Note that there is no floating point support in the standard library for the Arduino - so you can't use %f etc.</strong></p>
