added getsensor data method