Photoelectric sensor application for Automatic machines for warehouses