Wireless sensor networks for early fire detection