How to execute if a sheep has eaten wheat

Now I need to execute to run a command chain when it detects this sheep has eaten 1 piece of wheat. But I'm not sure how to do it, as I've never tried to detect something like this before. Is it possible?
Continue to help post