A maintenance employee was conducting repairs on the conveyor belt of an automatic palletizer. The employee's shirt fell in front of a sensor causing the equipment to energize. The employee's right middle finger was caught by chains within the conveyor belt motor resulting in a partial amputation.