Wireless sensor network for precision agriculture: Design, Performance Modeling and Evaluation, and Node Localization