Automation has attracted interest from the industry sector for its potential to improve energy efficiency, cost efficiency, and environmental performance. By elevating the LoA to the highest degree, associated costs will grow accordingly and its implementation will be far more complicated. This will also result in losing workers and decreasing environmental pollutants. On the other hand, increasing power consumption at high levels of automation leads to the production of greenhouse gases. This paper aims to increase the level of automation (LoA) considering the concept of sustainability. This study presents fuzzy multi-objective programming to determine the optimal LoA considering sustainability factors to achieve competitive advantages. To solve the model, the Zimmermann max-min approach was adopted and a cosmetics factory in Iran was chosen to optimize LoA according to this model. The results showed that it is possible to improve the LoA and also consider sustainability factors with the available resources without using the highest LoA. This study can help managers optimize the LoA in their organizations considering the current resources and sustainability issues, and control the company's return on investment and cost of overhead. They can run the model with every definition of LoA proposed till now. This research can benefit the environment and the workers' health in the production line by reducing environmental pollutants and prevent the dismissal of all personnel due to its negative social effects. It also reduces the risk of COVID-19 by minimizing the number of workers. So far, a mathematical model for selecting optimal LoA in the chemical industry considering sustainability has not been presented.