Automatic photoelectric fault detecting controls