Ice Maker in GE gold not working

Hello all,
My icemaker has stopped working in my Whirlpool Gold refrigerator. When it first stopped working I was able to unplug the fridge and plug it back in and it would sometimes start making ice again. Now it won’t work at all. It is the In-Door-Ice maker with the infrared sensors. Any help to diagnose the problem would be appreciated. Also let me know if most people end up replacing the unit. I tested the sensor and it appears to be working.
Thanks for your help!
Darren