Wireless sensor network is a network of spatially distributed sensor nodes equipped with sensing, computing, power, and communication modules to monitor a certain phenomenon such as environmental data or object tracking. The nodes in such networks are characterized by limited power, processing, and memory resources. The energy of each sensor is limited and they are usually unrechargeable, so to prolong the life time of WSNs energy consumption of each sensor has to be minimized. The existing system used duty cycling based sleep/wake-up scheduling approaches, in that the time axis is divided into periods, each of which consists of several time slots. In each period, nodes adjust their sleep and wake up time, i.e., adjusting the duty cycle, where each node keeps awake in some time slots while sleeps in other time slots. A long wake-up time may cause energy waste, while a short wake-up time may incur packet delivery delay. However, these duty cycling based approaches in WSNs may incurs tradeoff between both energy saving and packet delivery delay. In order to avoid this, self healing based sleep/wake-up scheduling is proposed to save the energy of each sensor node by keeping nodes in sleep mode as long as possible and thereby maximizing their lifetime. In addition to this denial of Sleep Attack is also considered in this technique which prevents the radio from going into sleep mode and also drain the battery in only a few days. To prevent against denial of sleep attack a cross layer energy efficient security mechanism is additionally added to protect the network from these attacks. The cross layer interaction between network Mac and physical layers is mainly exploited to identify the intruders’ nodes and prevent sensor nodes from denial of service. Thus the proposed protocol will reduce the delay and improve the lifetime and QoS of networks.