Prints the output of the deriv function to the serial monitor