Safety system for an industrial environment comprising a robotic machine wherein at least a moving head of the robotic machine is movable within a first area and a second area of the industrial environment , the safety system comprising: - a first vertical support and a second vertical support , and a light curtain extending between the first vertical support and the second vertical support to cover both the first area and the second area ; - a head position sensor adapted to detect the position of the moving head within the first area and the second area ; - a safety control unit ; characterized in that the light curtain comprises a first couple of two TOF sensors (F1, F3) respectively positioned on the first and second vertical supports , the safety control unit being adapted to process output signals received from the TOF sensors (F1, F3) and the head position sensor so as to selectively and dynamically secure the first area and the second area , wherein: - the safety control unit is adapted to selectively and dynamically secure the first area and the second area by activating a safety measure in the industrial environment , depending from the output signals received from the TOF sensors (F1, F2, F3, F4) and the head position sensor , the safety control unit being configured to activate said safety measure in the industrial environment when: - at least one of the output signals received from the TOF sensors (F1, F2) on the first vertical support indicates a breach of the light curtain within the first range of distances and the output signal received from the head position sensor indicates presence of the moving head within the first area ; and/or - at least one of the output signals received from the TOF sensors (F3, F4) on the second vertical support indicates a breach of the light curtain within the second range of distances and the output signal received from the head position sensor indicates presence of the moving head within the second area . - a first vertical support and a second vertical support , and a light curtain extending between the first vertical support and the second vertical support to cover both the first area and the second area ; - a head position sensor adapted to detect the position of the moving head within the first area and the second area ; - a safety control unit ; characterized in that the light curtain comprises a first couple of two TOF sensors (F1, F3) respectively positioned on the first and second vertical supports , the safety control unit being adapted to process output signals received from the TOF sensors (F1, F3) and the head position sensor so as to selectively and dynamically secure the first area and the second area , wherein: - the safety control unit is adapted to selectively and dynamically secure the first area and the second area by activating a safety measure in the industrial environment , depending from the output signals received from the TOF sensors (F1, F2, F3, F4) and the head position sensor , the safety control unit being configured to activate said safety measure in the industrial environment when: - at least one of the output signals received from the TOF sensors (F1, F2) on the first vertical support indicates a breach of the light curtain within the first range of distances and the output signal received from the head position sensor indicates presence of the moving head within the first area ; and/or - at least one of the output signals received from the TOF sensors (F3, F4) on the second vertical support indicates a breach of the light curtain within the second range of distances and the output signal received from the head position sensor indicates presence of the moving head within the second area . <EOS>