The agricultural industry produces a substantial quantity of organic waste, and finding a suitable method for disposing of this highly biodegradable solid waste is a difficult task. The utilisation of anaerobic digestion for agricultural waste is a viable technological solution for both renewable energy production (biogas) and waste treatment. The primary objective of the study was to assess the composition of biogas, namely the percentages of methane, carbon dioxide, ammonia, and hydrogen sulphide. Additionally, the study aimed to quantify the amount of biogas produced and determine the methane yield (measured in NmL/g VS) from different agricultural substrates. The biochemical methane potential (BMP) measurements were conducted in triplicate using the BPC Instruments AMPTS II instrument. The substrates utilised in the investigation were chosen based on their accessibility. The substrates used in this study comprise cattle manure, chicken manure, pig manure, tomato plants, tomatoes, cabbage, mixed fruits, mixed vegetables, dog food, and a co-digestion of mixed vegetables, fruits, and dog food (MVMFDF). Prior to the cleaning process, the makeup of the biogas was assessed using the BIOGAS 5000, a Geotech Analyser. The AMPTS II flow cell automatically monitored and recorded the volume of bio-methane produced after the cleaning stage. The data were examined using the Minitab-17 software. The co-digestion of mixed vegetables, mixed fruits, and dog food (MVMFDF) resulted in the highest methane level of 77.4%, followed by mixed fruits at 76.6%, pig manure at 72.57%, and mixed vegetables at 70.1%. The chicken manure exhibited the greatest levels of ammonia (98.0 ppm) and hydrogen sulphide (589 ppm). Chicken manure had the highest hydrogen sulphide level, followed by pig manure (540 ppm), tomato plants (485 ppm), mixed fruits (250 ppm), and MVMFDF (208 ppm). Ultimately, the makeup of biogas is greatly affected by the unique qualities of each substrate. Substrates containing elevated quantities of hydrogen sulphide, such as chicken manure, require the process of biogas scrubbing. This is because they contain substantial amounts of ammonia and hydrogen sulphide, which can cause corrosion to the equipment in biogas plants. This emphasises the crucial need to meticulously choose substrates, with a specific focus on their organic composition and their capacity to generate elevated methane levels while minimising contaminants. Substrates with a high organic content, such as agricultural waste, are optimal for maximising the production of methane. Furthermore, the implementation of biogas scrubbing procedures is essential for efficiently decreasing carbon dioxide and hydrogen sulphide levels in biogas. By considering and tackling these problems, the effectiveness of biogas generation can be enhanced and its ecological consequences alleviated. This strategy facilitates the advancement of biogas as a sustainable energy source, hence contributing to the attainment of sustainable development goals (SDGs).