updating sensor