script for fourier calculation from sensor data