Smart agriculture for smart cities