It is also necessary to use digital filtering method in DSP program. The filtering method used in this design is to remove the maximum and minimum values obtained by sampling after 5 consecutive times, and to average the remaining 3 sampling values, so as to avoid collecting interference signals which are very different from the actual ones.