set sensor in object