We focus on the design of transmission protocol for energy harvesting wireless sensors. The sensors can harvest the energy from the environment, but they cannot charge and discharge at the same time. We propose a protocol for energy harvesting and wireless transmission, which contains two steps. In the first step, the sensor harvests the energy from environment, and the energy harvesting rate is controlled by the harvested energy power of the energy saving device (ESD). In the second step, some data should be transmitted to the receiver in a certain time. Considering one slot time, the first part of the time is devoted exclusively to energy harvesting, and the remaining time of the slot is for transmitting the information data. Assume that Q bits are transmitted to the receiver within one time slot; we establish the relationship between the harvesting energy time and the transmit data time. In addition, we analyze the system outage probability performance over the Rayleigh fading channel.