Microprocessor-controlled dual-coil detector