Preventing theft from factories and warehouses