The incubation time of OPD with the AuNP dispersion, the pH value of the AuNP dispersion and the phenylenediamine isomer(MPD, OPD or PPD) incubated with the AuNP dispersion in the presence of Hg2+are further optimized according to the sensing effect of our proposed detection system towards Hg2+.