Improving data transmission reliability and throughput in wireless sensor networks