Method making use of an automated system with robot, comprising: an enclosure equipped with at least one door providing access to at least one operator intervention station, said at least one operator intervention station being located within a work area of a robot and being adapted to accommodate a pallet, a series of presence detection means in alignment along a height of the enclosure, said series of presence detection means being arranged at or near said door, said series of presence detection means being connected to a safety controller acting on the operation of the robot and/or on the safety measures applied to said enclosure, and communicating with a management controller of the automated system, said management controller authorizing extraction of a pallet and communicates information to the safety controller concerning the extraction authorization, said method being characterized in that: said series of presence detection means sends initial height information about the pallet on which products are arranged to said safety controller, said safety controller generates reference information that is based on said initial information received, at least at the moment when the pallet is extracted from the operator intervention station and when one end of the pallet is located in front of the series of presence detection means: the presence detection means send current height information concerning said pallet to said safety controller, and said safety controller compares said current height information to said reference information, and in that, if said current height information does not match the reference information, then the robot is stopped and/or the safety measures of said enclosure are applied. an enclosure equipped with at least one door providing access to at least one operator intervention station, said at least one operator intervention station being located within a work area of a robot and being adapted to accommodate a pallet, a series of presence detection means in alignment along a height of the enclosure, said series of presence detection means being arranged at or near said door, said series of presence detection means being connected to a safety controller acting on the operation of the robot and/or on the safety measures applied to said enclosure, and communicating with a management controller of the automated system, said management controller authorizing extraction of a pallet and communicates information to the safety controller concerning the extraction authorization, said method being characterized in that: said series of presence detection means sends initial height information about the pallet on which products are arranged to said safety controller, said safety controller generates reference information that is based on said initial information received, at least at the moment when the pallet is extracted from the operator intervention station and when one end of the pallet is located in front of the series of presence detection means: the presence detection means send current height information concerning said pallet to said safety controller, and said safety controller compares said current height information to said reference information, and in that, if said current height information does not match the reference information, then the robot is stopped and/or the safety measures of said enclosure are applied. said series of presence detection means sends initial height information about the pallet on which products are arranged to said safety controller, said safety controller generates reference information that is based on said initial information received, at least at the moment when the pallet is extracted from the operator intervention station and when one end of the pallet is located in front of the series of presence detection means: the presence detection means send current height information concerning said pallet to said safety controller, and said safety controller compares said current height information to said reference information, and in that, if said current height information does not match the reference information, then the robot is stopped and/or the safety measures of said enclosure are applied. the presence detection means send current height information concerning said pallet to said safety controller, and said safety controller compares said current height information to said reference information, and in that, if said current height information does not match the reference information, then the robot is stopped and/or the safety measures of said enclosure are applied.