Nanostructured (Bio)sensors for smart agriculture