Motorizing a valve, which of this two options is better?

Thanks for the advice!