The present invention relates to a machine and system for the preparation of cooled confectionery comprising a seat (1) for accommodating an essentially cup-shaped container (8), an heat exchange element (1a) having a heat exchange contact surface (21) arranged to be in contact with an outer wall (8d) of the container when the container is placed in the machine (20), and a temperature sensor (16) arranged to measure the temperature at the outer surface (8e) of the container when the container is placed in the machine, wherein the temperature sensor (16) is arranged distanced from the heat exchange contact surface (21).