A WSN-based solution for precision farm purposes