The fault diagnosis technology have emerged and developed rapidly with the development of wireless sensor networks and requirements of applications improve. This paper describes two commonly used sensor network fault modeling. What is more, in order to solve this problem that sensor nodes are vulnerable and therefore produce wrong data, the paper proposes a distributed fault detecting algorithm based on spatio-temporal correlation among data of adjacent nodes. The simulation experiment shows that the algorithm can efficiently detect errors in the network and very few errors are introduced.