Arduino Forum

Topics => Science and Measurement => Topic started by: Jeremy574 on Feb 28, 2019, 12:30 pm

Title: Printing multiple variables in columns in serial monitor
Post by: Jeremy574 on Feb 28, 2019, 12:30 pm
I've got an Air Quality sensor and a Light sensor running off the arduino. However, when I open the Serial Monitor the results just alternate between the two in one single column.
Title: Re: Printing multiple variables in columns in serial monitor
Post by: elvon_blunden on Feb 28, 2019, 12:36 pm
I've got an Air Quality sensor and a Light sensor running off the arduino. However, when I open the Serial Monitor the results just alternate between the two in one single column.
I'm going to guess you used println for both: use print for the first one, and add another print with some spaces or a tab, then println the second one.

I don't think anyone can really help without you showing your code. And when you do that, explain what it is you want.