Ok, so my first part is done. I can get data from the input terminals like what I wrote already in the code. This gives me the variable of volt.

I can see that after the data is smoothed, I need to send the data into a variable eg:smoothedvariable and finally

Temp = 50*smoothedvariable
Linegraph.value = Temp

So my first problem is now turning 'volt' into 'smoothedvariable'. Can I do this without much addition to the code? Where can I find an example of this?