I believe at one point there was a thread here about setting moisture level directly into flex settings with the API.
So yes, it sounds like it would be possible and potentially ideal.
Found it - Soil Sensor Connectivity
Looks like it was tried but removed.