Alexander Graham Bell developed the metal detector as a last ditch effort to locate a bullet lodged in the chest of American President James Garfield in 1881; the attempt was unsuccessful because the metal coil spring bed Garfield was lying on confused the detector.