In today's world, human life and the planet Earth are being severely harmed as a result of rising global warming and garbage dumping. We believe that producing biofuel from garbage is the greatest and most cost-effective alternative, thus we've created a device that turns garbage into bioethanol. To start with, waste is dried and crusted into powder. The sample is then subjected to FTIR data analysis. We can determine the percentages of cellulose, hemicellulose, and lignin, based on this examination. We can choose bacteria that can be cellulose, hemicellulose, or lignin, based on their percentage and convert this waste into bioethanol or fuel. We have FTIR data samples with different percent's of cellulose, hemicellulose, and lignin in them. For example, 100% cellulose, 100% hemicellulose, 75% lignin, 25% hemicellulose, and so on. We have a total of 39 such permutation combinations for which we have achieved FTIR signals based on the amount we have selected for these samples. 3 repetitions. We map random FTIR samples using machine learning. The percentage of cellulose, hemicellulose and lignin in that sample is determined using linear interpolation.