An efficient sustainable smart approach to biofuel production with emphasizing the environmental and energy aspects