-Sensor readings are polled automatically
via the cosm javascript library
-Array rewritten to use unshift() and pop(), no index required