The fail-safe sensors switch into the safe state as soon as the target is detected inside the safe switch-off distance. The safety-related function is inverted when compared to the previous fail-safe sensors. This function is ideal in applications such as the protection of crane installations or industrial robots because the targets only need to be mounted at the end positions. Both the number of metallic targets and the installation complexity are considerably reduced.