Ice maker not working water is

Ice maker not working but I get water. Filled tray manually and it froze and dumped the ice. It has refilled frozen and not dumped. Temp in freezer not cold. It is about 20 degrees. Setting is on max. Has the infrared optic sensor. Any help?