Agricultural waste to energy by biogas treatment