the detector was set to automatically lock the second doors if metal was detected on the persons of those passing through , and the wires leading out of it were encased in an aluminum tube , attached there on the left .