In this study, an anaerobic pneumatic mechanical digester (PMD) was designed for the first time to investigate the impact of pneumatic agitator on increasing the bioethanol production and compared with a mechanical digester (MD). Fermentation was performed during an optimized pretreatment and hydrolysis process by RSM (Response Surface Method). Ultrasound optimized points (the time values, the acid concentration, and the biomass load) were 30 min, 1.95% v/v, and 6%, and hydrolysis was done within 45 min at the acid concentration of 2.04% v/v and temperature of 148.4 °C. The hydrolysis solutions were poured and the fermentation process took place within 20 days in the PMD and MD. The sampling sequence was every 5 days. According to the results, the PMD could produce bioethanol more than the MD by 27.94%. Besides, CO, H2S and O2 were measured through fermentation. In PMD, the amount of H2S and O2 was lower than the MD, but then the production of CO in the PMD was meaningfully higher. Finally, by the application of the PMD, the amount of harmful mixtures produced throughout the process can be controlled. It can be said that with the new method designed in this study, it is possible to take an important step in the biorefinery and use the biomass produced in nature in an economical and environmentally friendly way.