Forests are conceived as one of the most significant and essential resources on earth. Based on the inadequacies of conventional forest fire monitoring on real time detection, the wireless sensor network technique for forest fire detection was introduced. In this paper, we have proposed a framework for forest fire detection and monitoring as an application area of wireless sensor networks. Our systems gather temperature from every points of forest and transmit it to control center speedily. Our framework includes proposals for the wireless sensor network architecture and communication protocols to detect the fire threats quickly. It also conceives the consumption of energy by the sensor nodes and the physical conditions that may hinder the activity of the network. When it consumes energy from nature then it provides fast reaction to forest fires. This framework can provide fast reaction to forest fires together with efficient energy consumption. In this paper we have presented an algorithm for controlling forest fire and a sleep-awake cycle to increase lifetime of sensor network.