Added code for timed sensor measurements