olly_whinnett:
do you know which part of the code would I have to change?
I'm afraid I can't comment because I don't understand the code. I just collect numbers from sensors and send them off to various destinations. You seem to be doing more than that.
Anyway hopefully the formatting will work as you say when I work out how to do it.
I think you are right, you just need to attend to that. You might Serial.println to the monitor at the same time in order to see what you should see.