The smart sensor that could transform food and farming