added diff function

stores most recent 10 values for every sensor, puts (newest-oldest) into
diff array