A machine for distributing a liquid or semi-liquid food product or liquid or semi-liquid food products taken from at least one corresponding container , said machine comprising: - at least one container adapted to contain a liquid or semi-liquid food article or liquid or semi-liquid food articles to be distributed; - at least one distribution device for liquid or semi-liquid product or liquid or semi-liquid products which can be controlled from outside to obtain the distribution of a selected amount of said liquid or semi-liquid product or liquid or semi-liquid products; - pump means , connected with an inlet to said at least one container , so as to withdraw selected amounts of said liquid or semi-liquid product or liquid or semi-liquid products, and with an outlet to said at least one distribution device , so as to send thereto said selected amounts of liquid or semi-liquid product or liquid or semi-liquid products; said machine being characterized in that said at least one container is formed by a deformable bag made of a material suitable for food, said bag being provided with an aperture, from which the product is released, and in correspondence to which an inlet is applied, to which deformable bag a connector can be coupled for connecting the at least one container to the pumping means , said connector including a body provided with an opening passing therethrough and acting as a product outlet and connected to the machine by connecting means designed to connect with an inlet through which the product associated to said container is released, wherein the connector includes also a thermal sensor supported so as to be positioned, in use, inside said container , when said container is coupled to the machine by the connecting means , wherein said sensor is fastened to said body so as to project inwards of the container and protrudes with a connection cable from the end intended to remain outside the container , wherein a second through opening is provided, extending parallel or almost parallel to said opening for the product to pass therethrough, with said sensor being introduced and fixed in said second opening so as to protrude from a side of said body aimed at entering the inlet of said bag , and with a connecting cable which originates from an end of the sensor , intended to remain closed inside the second opening , and extending through the latter until it leaves from a side of said body external with respect to the bag , wherein said body includes a portion (p1) which couples with said bag and a portion (P2) provided with a threading (F1,19) and wherein said first coupling portion (P1) includes a first internal cavity and said second portion (P2) includes a second internal cavity . - at least one container adapted to contain a liquid or semi-liquid food article or liquid or semi-liquid food articles to be distributed; - at least one distribution device for liquid or semi-liquid product or liquid or semi-liquid products which can be controlled from outside to obtain the distribution of a selected amount of said liquid or semi-liquid product or liquid or semi-liquid products; - pump means , connected with an inlet to said at least one container , so as to withdraw selected amounts of said liquid or semi-liquid product or liquid or semi-liquid products, and with an outlet to said at least one distribution device , so as to send thereto said selected amounts of liquid or semi-liquid product or liquid or semi-liquid products; <EOS>