I am currently using the G4P GUI builder and I need to know how to print what a serial value from an analog pin off of my arduino mega that is connected to a LM335 temperature sensor. The value needs to be printed inside an object/shape/text field or anything like that within a GUI window from the G4P tools.
The data would be read by pressing a button within the GUI that would then read the analog pin and do a few mathematical conversions then send the output to the shape/box/text field "73.8°". If its possible I would like to be able to click a different button and have the same shape cleared and print a new value or sentence such as "Light is off".
Just for some context I linked below my post on the arduino forums about what my project is. Keep in my please I am an electrical engineer so I have never taken any coding classes and I have been learning everything as I go. I tried searching for a few hours and looked through some example codes and the processing reference but could not find my answer.