Cooking appliance for cooking food products, comprising: - a lower portion comprising a lower cooking plate, - an upper portion comprising an upper cooking plate, - a hinging element connecting the upper portion to the lower portion and configured such that the upper portion is hingedly mounted with respect to the lower portion to define at least one loading position wherein a food can be placed on a lower cooking plate and at least one cooking position wherein the food is surrounded between the lower cooking plate and the upper cooking plate, characterised in that the cooking appliance comprises: - a measurement device configured to determine a separation between the lower cooking plate and the upper cooking plate, the measurement device being supported by one from among the lower portion and the upper portion, - a cooking management unit configured to manage the cooking of a food arranged between the lower cooking plate and the upper cooking plate according to the separation determined by the measurement device, and in that the measurement device comprises: - an actuating element mounted movably between a first position and a second position wherein the actuating element is born against the other from among the lower portion and the upper portion, the cooking appliance being configured such that a movement of the upper portion between a predetermined loading position and a cooking position drives a movement of the actuating element between the first position and the second position, and - a measurement element configured to engage with the actuating element and to determine the separation between the lower cooking plate and the upper cooking plate according to the position of the actuating element between the first position and the second position. - a lower portion comprising a lower cooking plate, - an upper portion comprising an upper cooking plate, - a hinging element connecting the upper portion to the lower portion and configured such that the upper portion is hingedly mounted with respect to the lower portion to define at least one loading position wherein a food can be placed on a lower cooking plate and at least one cooking position wherein the food is surrounded between the lower cooking plate and the upper cooking plate, characterised in that the cooking appliance comprises: - a measurement device configured to determine a separation between the lower cooking plate and the upper cooking plate, the measurement device being supported by one from among the lower portion and the upper portion, - a cooking management unit configured to manage the cooking of a food arranged between the lower cooking plate and the upper cooking plate according to the separation determined by the measurement device, and in that the measurement device comprises: - an actuating element mounted movably between a first position and a second position wherein the actuating element is born against the other from among the lower portion and the upper portion, the cooking appliance being configured such that a movement of the upper portion between a predetermined loading position and a cooking position drives a movement of the actuating element between the first position and the second position, and - a measurement element configured to engage with the actuating element and to determine the separation between the lower cooking plate and the upper cooking plate according to the position of the actuating element between the first position and the second position. - an actuating element mounted movably between a first position and a second position wherein the actuating element is born against the other from among the lower portion and the upper portion, the cooking appliance being configured such that a movement of the upper portion between a predetermined loading position and a cooking position drives a movement of the actuating element between the first position and the second position, and - a measurement element configured to engage with the actuating element and to determine the separation between the lower cooking plate and the upper cooking plate according to the position of the actuating element between the first position and the second position.