Smart oven allows contactless detection of surface temperature of an item being heated. The temperature of the heated object can be maintained at the specified temperature for a specified time. The program for cooking can be read automatically from a package from the food, e.g, from a bar code on the package. When the preheating or cooking is finished, a text message can be sent to a user.