A system in a vehicle configured to control the temperature of a temperature controlled vehicle compartment (30a,30b) wherein the temperature controlled vehicle compartment (30a,30b) is a trunk and/or a frunk compartment of the vehicle, the system comprising: at least a first camera (20a,20b,20c,20d) configured to obtain images; the temperature controlled vehicle compartment (30a,30b) configured to be cooled and/or heated; and a processing circuitry (102a,102b,102c) operatively connected to the at least a first camera (20a,20b,20c,20d) and the temperature controlled vehicle compartment (30a,30b), configured to cause the system to: obtain, by the at least first camera (20a,20b,20c,20d), at least a first image data (im1,im2,im3) of the interior of the temperature controlled vehicle compartment (30a,30b) and/or the surroundings of the vehicle; detect at least a first attribute of at least a first object (5a,5b,5c,5d) in the at least first image data (im1,im2,im3) by object recognition processing of the at least first image data (im1,im2,im3); determine if cooling or heating of the temperature controlled vehicle compartment (30a,30b) is to be activated based on the at least first attribute of the at least first object (5a,5b,5c,5d); and activate any of cooling or heating of the temperature controlled vehicle compartment (30a,30b) based on the at least first attribute of the at least first object (5a,5b,5c,5d). at least a first camera (20a,20b,20c,20d) configured to obtain images; the temperature controlled vehicle compartment (30a,30b) configured to be cooled and/or heated; and a processing circuitry (102a,102b,102c) operatively connected to the at least a first camera (20a,20b,20c,20d) and the temperature controlled vehicle compartment (30a,30b), configured to cause the system to: obtain, by the at least first camera (20a,20b,20c,20d), at least a first image data (im1,im2,im3) of the interior of the temperature controlled vehicle compartment (30a,30b) and/or the surroundings of the vehicle; detect at least a first attribute of at least a first object (5a,5b,5c,5d) in the at least first image data (im1,im2,im3) by object recognition processing of the at least first image data (im1,im2,im3); determine if cooling or heating of the temperature controlled vehicle compartment (30a,30b) is to be activated based on the at least first attribute of the at least first object (5a,5b,5c,5d); and activate any of cooling or heating of the temperature controlled vehicle compartment (30a,30b) based on the at least first attribute of the at least first object (5a,5b,5c,5d). obtain, by the at least first camera (20a,20b,20c,20d), at least a first image data (im1,im2,im3) of the interior of the temperature controlled vehicle compartment (30a,30b) and/or the surroundings of the vehicle; detect at least a first attribute of at least a first object (5a,5b,5c,5d) in the at least first image data (im1,im2,im3) by object recognition processing of the at least first image data (im1,im2,im3); determine if cooling or heating of the temperature controlled vehicle compartment (30a,30b) is to be activated based on the at least first attribute of the at least first object (5a,5b,5c,5d); and activate any of cooling or heating of the temperature controlled vehicle compartment (30a,30b) based on the at least first attribute of the at least first object (5a,5b,5c,5d).