Real-Time Communication in Wireless Sensor Networks