Energy is one of the crucial factors in wireless sensor network. In this paper, we consider energy fairness problem in heterogeneous wireless sensor network. Firstly, we propose a nodes' deployment model in which we deploy heterogeneous sensor nodes judiciously to conserve energy. This prevents the problem of occurrence of 'energy holes' and ensures prolonged network lifetime. Then, we use Game Theory to model the packet transmission among sensor nodes, and get the Nash equilibrium by properly designing the measurement function. Finally, the simulation results fully prove the effectiveness of the proposed scheme in this paper, which not only make the energy consumption of the network balanced but the network lifetime also improved.