The present invention relates to a refrigerator (1) comprising a compartment (3) that is suitable to place therein a storage container (2) that preserves foods such as vegetable, fruit, meat, etc, a door (4) that closes the compartment (3) and that allows access into the compartment (3) if required, a handle (5) that is disposed on the door (4) and that provides the opening of the door (4) and sensors (8) that are disposed in the handle (5) and that detect the spoilage status of the foods.