Sentience is central to the philosophy of animal rights, because sentience is necessary for the ability to suffer, and thus is held to confer certain rights.
That said, in my opinion, as it relates to optimal ecosystems, sentience at best might be a consideration.
Impact, contribution, etc. to an ecosystem would be a more natural measure.
Yes, a health ecosystem requires non-sentient live for a number of reasons including that non-sentient is the source of genetically different sentient live. Diversity is critical for ecosystems.