Which factor influences the selection of the right valve for fully automating an STP/ETP?

Should we go for a pneumatic/motorized ?

Should we go for ball valve/ butterfly/ solenoid valve ?