A fence of sensors will work just fine — as long as triggering the sensors sets off landmines that blanket the entire area with anesthetic sliver shrapnel & tear gas so when the border patrol responds they just cart away the unconscious bodies.
I think you could buy 3 miles of fence for the price of one of those awesome sounding landmines.