I am working on a project to mesure several conditions: temperature, humidity, etc.
All the different parts and sensors are within their own function. Some contain global variables and some local variables as well.
The serial output of the variables should be in its own function to be better able to control it.
For the global variables there shouldn't be any problem. How can I how ever pass the local variables of the different functions to the serial output function? Is it possible? How best to do it? Any alternatives?
Thank you in advance!