Sensor Research and Detection Technology for Efficient Water Usage and Security in Agriculture