A refrigerator comprising: a main body; an ice-making chamber formed inside the main body; an ice-making tray installed inside the ice-making chamber, wherein ice-making water is stored and ice is generated in the ice-making tray; and a refrigerant pipe (56, 57) installed so that at least a part thereof is in contact with the ice-making tray, wherein a refrigerant flows in the refrigerant pipe (56, 57), wherein the ice-making tray includes: an ice-making cell that stores ice-making water; and a temperature sensor accommodation portion that accommodates a temperature sensor that measures temperature of water or ice stored in the ice-making cell, and the temperature sensor accommodation portion includes: an accommodation portion that is formed in a groove shape and has an open upper side so that the temperature sensor moves in or out; and a fixing portion which is coupled to a wire connected to a part of the temperature sensor or to the temperature sensor and fixes a position of the temperature sensor, characterized in that the temperature sensor accommodation portion includes an ice-making water contact portion, wherein at least a part of a side surface of the ice-making water contact portion facing the ice-making cell is open, so that the temperature sensor accommodated in the temperature sensor accommodation portion is in contact with ice-making water through the ice-making water contact portion. a main body; an ice-making chamber formed inside the main body; an ice-making tray installed inside the ice-making chamber, wherein ice-making water is stored and ice is generated in the ice-making tray; and a refrigerant pipe (56, 57) installed so that at least a part thereof is in contact with the ice-making tray, wherein a refrigerant flows in the refrigerant pipe (56, 57), wherein the ice-making tray includes: an ice-making cell that stores ice-making water; and a temperature sensor accommodation portion that accommodates a temperature sensor that measures temperature of water or ice stored in the ice-making cell, and an ice-making cell that stores ice-making water; and a temperature sensor accommodation portion that accommodates a temperature sensor that measures temperature of water or ice stored in the ice-making cell, and the temperature sensor accommodation portion includes: an accommodation portion that is formed in a groove shape and has an open upper side so that the temperature sensor moves in or out; and a fixing portion which is coupled to a wire connected to a part of the temperature sensor or to the temperature sensor and fixes a position of the temperature sensor, characterized in that the temperature sensor accommodation portion includes an ice-making water contact portion, wherein at least a part of a side surface of the ice-making water contact portion facing the ice-making cell is open, so that the temperature sensor accommodated in the temperature sensor accommodation portion is in contact with ice-making water through the ice-making water contact portion. an accommodation portion that is formed in a groove shape and has an open upper side so that the temperature sensor moves in or out; and a fixing portion which is coupled to a wire connected to a part of the temperature sensor or to the temperature sensor and fixes a position of the temperature sensor, characterized in that the temperature sensor accommodation portion includes an ice-making water contact portion, wherein at least a part of a side surface of the ice-making water contact portion facing the ice-making cell is open, so that the temperature sensor accommodated in the temperature sensor accommodation portion is in contact with ice-making water through the ice-making water contact portion.