serial.js originally had a lot more logic but I accidentally deleted the file.

essentially it would read in sensor values and compute a running average of the last 50 values. This smoothed out the input from the linear potentiometer that was hooked up to the arduino since the input values were pretty chaotic.