An ice maker for a refrigerator includes: an upper assembly including an upper tray forming an upper chamber, which is a portion an ice chamber, and having an upper opening, and a temperature sensor configured to sense temperature of the ice chamber in contact with the upper tray; and a lower assembly being rotatable with respect to the upper assembly and having a lower tray forming a lower chamber that is another portion of the ice chamber, in which a contact portion between the temperature sensor and the upper tray is positioned closer to a contact surface of the upper tray and the lower tray than the upper opening.