Identification of Communication State for Wireless Sensor Networks