Add block on onSensorChange to allow regulation of update frequency. Constant PERIOD (millis) can be set to regulate the update interval.