Temperature is the essential factor that affects biogas production. At higher temperature, maximum biogas is produced. Factors like the C/N ratio, pH value, compression ratio, and total solid concentration affect biogas production.