Simple. Just create an invisible Zone sprite of any shape and set the Turret to automatically target an object (Add object to target).
Then check if the object is overlapping the Zone.
If it is, then enable the Turret, if not, then disable the Turret.