Crop monitoring using wireless sensor networks