This document proposes modifications to the physical and data link layers to improve resistance against jamming attacks in wireless sensor networks. In the physical layer, an uncorrelated groups based direct sequence spread spectrum technique is proposed where sequences are grouped and selected randomly to spread messages. In the data link layer, two modifications to the SMAC protocol are proposed: 1) Data Packet Separation Slot Size Randomization, which separates data packets to mislead jammers' estimation of slot size, forcing them to deplete power more quickly. 2) Maximum Covers using Mixed Integer Programming algorithm, which aims to minimize energy consumption while scheduling network tasks. Simulation results show the proposed techniques can achieve over 8% reduction in an attacker's lifetime advantage compared to