Efficient wastewater treatment is crucial for safeguarding the environment and maintaining public health. It is…