Plant sensors could act as an early warning system for farmers