A meals preparation machine and a method for preparing meals, using a meals preparation machine, configured to: receive a meal package (MP) into the meals preparation machine, the MP having an identifier thereover; detect one or more characteristics of the identifier of the received MP, using at least one sensor, outputting sensor data indicative of the detected one or more characteristics; identity a meal preparation code of the respective MP, based on the sensor data; retrieve a meal preparation plan that is associated with the identified meal preparation code of the respective MP; and control preparation of a meal of the respective MP, based on the retrieved meal preparation plan.