The neutron yield in $^{12}$C(d,n)$^{13}$N and the proton yield in $^{12}C(d,p)^{13}$C have been measured by deuteron beam from 0.6 MeV to 3 MeV which is delivered from a 4-MeV electro static accelerator bombarding on the thick carbon target. The neutrons are detected at $0degree$, $24degree$, $48degree$ and the protons at $135degree$ in the lab frame. The ratios of the neutron yield to the proton one have been calculated and can be used as an effective probe to pin down the resonances. The resonances are found at 1.4 MeV, 1.7 MeV, 2.5 MeV in $^{12}C(d,p)^{13}$C and at 1.6 MeV, 2.7 MeV in $^{12}$C(d,n)$^{13}$N. This method provides a way to reduce the systematic uncertainty and helps to confirm more resonances in compound nuclei.