Dete ting and leaning intruders in sensor networks