That comes with all the additional requirements of a technological solution - power, maintenance, reliability etc. A simple barrier will continue to work even after the local kids have tagged it.
I would not want to live/work/sit near such a thing.
Great, now we're going to see random beeping devices places around SF where people don't want the homeless to congregate.