Smart solution may thwart burglars