icemaker not ejecting ice light is flashing

There is ice in the ice maker but it is not ejecting the ice. the light is flashing. I have unplugged the appliance to reset. I have place the on/off button in the off position and then back on, the light will quit flashing temporarily and then begins to flash again. I am at a loss. It seems that the ice bucket on the door is hanging over in the way of the sensor light. I hope this makes sense…