Workpiece detector, sensor mounted in, near hand, gripper