Pyrolysis of Solid Digestate from Sewage Sludge and Lignocellulosic Biomass: Kinetic and Thermodynamic Analysis, Characterization of Biochar

: This study investigates the pyrolysis behavior and reaction kinetics of two different types of solid digestates from: (i) sewage sludge and (ii) a mixture of sewage sludge and lignocellulosic biomass— Typha latifolia plant. Thermogravimetric data in the temperature range 25–800 ◦ C were analyzed using Flynn–Wall–Ozawa and Kissinger–Akahira–Sunose kinetic methods, and the thermodynamic parameters ( ∆ H , ∆ G , and ∆ S ) were also determined. Biochars were characterized using different chemical methods (FTIR, SEM–EDS, XRD, heavy metal, and nutrient analysis) and tested as soil enhancers using a germination test. Finally, their potential for biosorption of NH 4+ , PO 43 − , Cu 2+ , and Cd 2+ ions was studied. Kinetic and thermodynamic parameters revealed a complex degradation mechanism of digestates, as they showed higher activation energies than undigested materials. Values for sewage sludge digestate were between 57 and 351 kJ/mol, and for digestate composed of sewage sludge and T. latifolia between 62 and 401 kJ/mol. Characterizations of biochars revealed high nutrient content and promising potential for further use. The advantage of biochar obtained from a digestate mixture of sewage sludge and lignocellulosic biomass is the lower content of heavy metals. Biosorption tests showed low biosorption capacity of digestate-derived biochars and their modiﬁcations for NH 4+ and PO 43 − ions, but high biosorption capacity for Cu 2+ and Cd 2+ ions. Modiﬁcation with KOH was more efﬁcient than modiﬁcation with HCl. The digestate-derived biochars exhibited excellent performance in germination tests, especially at concentrations between 6 and 10 wt.%.


Introduction
The continuous growth of the human population is correlated with an increase in primary energy consumption, where the main sources of energy are (still) of fossil origin, and are responsible for the majority of greenhouse gas (GHG) emissions into the atmosphere [1]. Renewable energy sources, such as solar [2], wind, geothermal, hydropower energy, and energy recovered from biomass and different wastes [3], are promising alternatives to fossil fuels, offering solutions to the above challenges. Renewable energy is environmentally friendly [4] and more sustainable than non-renewable energy [5].
Many researchers address issues related to energy resources and energy recovery in their studies. Some deal with waste-to-energy recovery and sustainable waste management [6], others attempt to find the right programming approach, with an optimal mix of to improve their sorption capacity. Modification with KOH improved the biosorption of heavy metals by sewage sludge digestate-derived biochar [58], HCl, and FeCl 3 were effective in modification of wheat straw biochar tested for ammonium biosorption [59], while the impregnation of sewage sludge biochar with Mg, Ca, Al, Cu, and Fe demonstrated the better sorption ability of phosphorus [60]. N-doped biochars proved to be successful in removing emerging organic pollutants [56].
Biochar also contains significant amounts of micro-and macro-nutrients, which makes it valuable as a soil amender. Several researchers have studied the potential of sewage sludge biochars as soil amenders, and obtained quite diverse results, from a negative influence on plant growth due to heavy metal toxicity [61], to a positive impact due to nutrient enrichment of the soil [62,63]. Therefore, each biochar should be carefully evaluated for its own specific characteristics before being used for a particular purpose.

Research Motivation and Paper Organization
Several factors motivated us to conduct the research reported on in this paper; the literature review revealed that there are knowledge gaps in many of the areas mentioned above. For example, there are no studies on the pyrolysis of T. latifolia digestate or its co-digestate with other biomass, such as sewage sludge, and no studies on the co-pyrolysis of this plant with other biomass. The data for kinetic and thermodynamic parameters are also lacking. In addition, there is limited information about the potential of sewage sludge digestate derived biochars for soil improvement and their impact on seed germination, and none about biochar derived from T. latifolia. Furthermore, biosorption studies with sewage sludge biochars are usually performed with only one ion species, while studies with different types of ions and different biochar modifications are less common. In order to fill the knowledge gaps mentioned above, this study investigated the thermogravimetric behavior of two solid fractions of digestates obtained from anaerobic digestion. The first digestate was obtained from mono-digestion of sewage sludge, while the second digestate was obtained from co-digestion of sewage sludge and Typha latifolia (1:1 ratio). For comparison, the analysis of undigested feedstocks was carried out. Kinetic analysis was performed by applying two iso-conversional methods, KAS and FWO. The obtained biochars were characterized by several analytical methods, wherein elemental, heavy metal, and nutrient analysis, FTIR, SEM-EDS, and XRD analyses were performed. Moreover, experiments were conducted on the further applicability of the digestate derived biochars. The fertility potential of cress seeds exposed to different biochar concentrations was studied, and the adsorption potential for biosorption of NH 4 + , PO 4 3− , Cu 2+ , and Cd 2+ ions by unmodified and chemically modified biochars was evaluated.
Several novelties are introduced by this work. To the best of the authors' knowledge, the pyrolysis kinetics of digestate composed of sewage sludge and the lignocellulosic plant T. latifolia were investigated for the first time. Thermodynamic parameters, such as ∆H, ∆G, and ∆S were determined as well, which cannot be found in the literature for this kind of digestate. A significant novelty is represented by the data obtained in the germination and biosorption tests, especially those from biochar modification, which bring valuable information on the possible use of the obtained biochars in agriculture, water treatment, and for other purposes.
The paper is organized as follows: Section 1 presents the study background and motivation for the research. The materials and methods used in the experiments and the kinetic models used in the kinetic analysis are presented in Section 2. In Section 3, the results of the characterization of feedstocks and products (including the results of biosorption and germination tests), as well as the results of thermogravimetric, kinetic, and thermodynamic analyses are discussed. Section 4 summarizes the main conclusions of the work and presents some directions for future research.

Materials and Methods
In this section, first, the methods for sample preparation and characterization methods are presented; further, the procedure for TGA is presented, and the models used in kinetic and thermodynamic analyses are introduced. Finally, the procedures for the biosorption and cress seed germination tests using digestate-derived biochars are described.

Preparation and Characterization of Feedstocks and Products
TGA experiments were conducted on two different solid fractions of digestates, digestate from mono-digestion of sewage sludge and from co-digestion of sewage sludge and the T. latifolia plant. In addition, raw sewage sludge and T. latifolia were analyzed for comparison.

Feedstocks Preparation
The solid fractions of digestates were obtained from anaerobic digestion experiments performed in 1 L batch reactors under mesophilic conditions (42 • C) with a retention time of 50 days. Digestate D1 was obtained from mono-digestion of sewage sludge, while digestate D2 was from co-digestion of sewage sludge and Typha latifolia plant (cattail). The composition of the samples on a dry matter basis (d.m.) used in the anaerobic digestion from which digestates D1 and D2 were obtained is shown in Table S1 in the supplementary material.
The ratio between substrate and inoculum was 1:1 (15:15 g on a dry matter basis). To both samples, 50 mL of cattle rumen fluid was added to promote fermentation and degradation of the lignocellulosic components. The mixtures were diluted with a buffer solution [64] to achieve a dry matter content of 6 wt.% in each reactor. The dewatered sewage sludge sample was collected from a local municipal wastewater treatment plant with tertiary biological treatment of wastewater with the capacity of 68,000 PE. Typha latifolia was gathered near a small river in the eastern part of Slovenia and cut into small pieces (0.5 cm × 0.5 cm). The inoculum was obtained from a biogas plant producing biogas from poultry manure. Cattle rumen fluid was acquired from a nearby slaughterhouse. The results of biogas production by anaerobic digestion are presented in our previous work [20]. After the anaerobic digestion process was stopped, the obtained digestates were separated into two parts, liquid and solid fractions, by centrifugation (Eppendorf 5804 R centrifuge, 7500 rpm, 8 min). The solid fractions of digestates D1 and D2 were dried at 105 • C in a laboratory dryer until constant weight, then ground and stored in a desiccator until further use in the thermogravimetric study. Undigested sewage sludge (SS) and T. latifolia were likewise dried and ground before being used in TGA.

Characterization of Feedstocks and Biochars
The basic characteristics of the feedstocks (digestates D1 and D2, raw sewage sludge, and T. latifolia plant) and their biochars were determined, such as proximate, ultimate, and heavy metal analyses. Moisture and dry matter content were determined according to the corresponding standard [65]. Ash content was determined as mass percentage of residues after combustion of the samples at 800 • C in a furnace for 4 h. Volatile matter (VM) was determined by measuring the weight loss after combustion of the samples in a furnace at 900 • C for 1 h. The fixed carbon (FC) was calculated as: Higher heating value (HHV) was determined experimentally by combustion of the samples in a bomb calorimeter calibrated by combustion of certified benzoic acid [66].
Besides experimental values, the theoretical HHV values were also calculated. Several correlation models were established to estimate the HHV of biomass using the proximate values of biomass. The following equation was used in this study [67]: Before and after TGA, the content of heavy metals and elements K + , Ca 2+ , and Mg 2+ was measured in the samples by inductively coupled plasma-optical emission spectrometry, ICP-OES [68]. The pH value of the biochars was determined as the pH value of the solution containing biochar at the mixing ratio biochar/deionized water = 1:20 (w/v).
The feedstocks and biochars were characterized using Fourier-transform infrared spectroscopy (FTIR) to study the functional groups present on the sample surface. For FTIR analysis, each dry sample was mixed with KBr (at a ratio of 1:30) and pressed into tablet form. The FTIR spectra were then recorded using a Shimadzu IRAffinity FTIR spectrophotometer (Japan). Scanning Electron Microscopy (SEM) analysis and X-ray powder diffraction (XRD) analysis were additionally used to characterize the biochars. XRD analysis was performed at room temperature with parameters of 2Theta from 10 • to 70 • and a scan rate of 0.033 • s −1 (XRD, D-5005 diffractometer of Bruker Siemens manufacturer, Karlsruhe, Germany). SEM combined with Energy Dispersive X-ray Spectroscopy (EDS) analysis was used to identify the surface morphology and composition of the biochars. The specimens were observed using a Sirion 400 FEI scanning electron microscope equipped with an energy dispersive microanalysis system (EDS Oxford INCA 350). The surface area of biochars and the pore size were determined using N 2 adsorption by means of a Micromeritics Tristar II 3020 porosimeter. The Brunauer-Emmett-Teller (BET) method was used for surface area determination and the Barrett, Joyner, and Halenda (BJH) model for pore size distribution.

Thermogravimetric Analysis (TGA) and Pyrolysis of Feedstocks
TGA was performed on the following feedstocks: digestates D1 and D2, undigested sewage sludge (SS) and T. latifolia plant (TLP). Biochar derived from undigested sewage sludge was designated as "B-SS", biochar from T. latifolia plant as "B-TLP", biochar from digestate D1 as "B-D1", and biochar from digestate D2 as "B-D2" (see Table 1). The TGA studies were carried out using the TGA/SDTA851e thermogravimetric analyzer (Mettler Toledo) in the temperature range from 25 to 800 • C under an inert atmosphere, ensured by a constant nitrogen flow of 100 mL/min. Samples weighing about 25 ± 1 mg, were exposed to the slow pyrolysis process at the following heating rates β: 15, 30, and 100 • C/min. These heating rates were chosen to cover as wide a range of the "slow pyrolysis" area as possible and promote the formation of solid biochar as the main product, rather than the liquid product normally formed at higher heating rates. From the results of TGA the TG curves (mass weights vs. temperatures) and derivative (DTG) curves were constructed using the MS Excel software tool. For the germination and biosorption tests and characterization studies (XRD, FTIR, and SEM-EDS analyses), the biochar samples were obtained by pyrolysis of feedstocks at 800 • C in a tube furnace under an inert atmosphere at a heating rate of 15 • C/min. The biochars, after achieving the desired temperature, were kept in a furnace for another 30 min under the same conditions. After cooling to room temperature, the biochars were stored in a desiccator until further use.

Kinetic and Thermodynamic Analysis
The kinetic study was performed using the Kissinger-Akahira-Sunose (KAS) and Flynn-Wall-Ozawa (FWO) models. The thermodynamic analysis was further carried out based on the obtained kinetic parameters from the KAS and FWO models.

Kinetic Models
For the kinetic analysis of the thermogravimetric data obtained in this study, the KAS and FWO models were used, since they are less susceptible to errors than differential iso-conversional methods, such as the Friedman method [69]. Since both models have been explained in detail in the literature, only the final expression of the temperature integral is presented here. The FWO kinetic model, which uses the Doyle equation to approximate the temperature integral, is described by Equation (4) [70]: The KAS kinetic model [37] is given by Equation (5): To determine the kinetic parameters for the selected conversion point (α), the left sides of Equations (4) and (5) were plotted on the y-axis against the (−1/RT) on the x-axis. The activation energy E α was then calculated from the value of the slope of the linear plots using the KAS and FWO methods.
Since iso-conversional methods are often limited to estimate the pre-exponential factor A and predict the reaction model, Kissinger developed a model-free non-isothermal equation to determine the pre-exponential factor [41], described by Equation (6):

Thermodynamic Parameters
The thermodynamic parameters of biomass decomposition such as the change in enthalpy ∆H (kJ/mol), Gibbs free energy ∆G (kJ/mol), and entropy ∆S (kJ/mol·K), can be calculated based on the previously obtained kinetic parameters using Equations (7)-(9) [54]: where K B represents Boltzmann constant (1.381 × 10 −23 J/K), T p represents peak temperature of the DTG curve (K) at a given heating rate, and h represents the Planck constant (6.626 × 10 −34 Js) [71].

Cress Seed Germination Test
Since seed germination is a critical step in a plant's life cycle [72], the cress seed germination test was conducted to investigate the potential of digestate-derived biochars (B-D1 and B-D2) for use as soil enhancers and to evaluate their toxicity to plants. To examine the response of plants to the obtained biochars according to the corresponding standard [73], 10 cress seeds (Lepidium sativum L.) were placed in each petri dish containing peat and then exposed to different concentrations of biochars for 72 h under controlled conditions (25 • C, absence of light). The following concentrations of biochars B-D1 and B-D2 were tested: 2, 6, 10, and 15 wt.%. Experiments were performed in triplicate for each concentration. A control sample containing water-soluble fertilizer with essential macronutrients (N:P 2 O 5 :K 2 O = 15:10:20, concentration of 1.5 g/L) was also prepared to compare the results. Based on the results of the growth test, the root length (RL) index was calculated using the equation described by Chemetova et al. [74] and Munoo-Liisa vitality (MLV) index, using the equation given by Maunuksela et al. [75].

Adsorption Tests
The biosorption potential of the digestate-derived biochars (B-D1 and B-D2) was evaluated by an adsorption test. The adsorption of NH 4 + , PO 4 3− , Cd 2+ , and Cu 2+ ions was studied at pH 7 and at constant temperature (22 • C). The pH 7 was chosen because the pH of aquatic solutions or wastewater is usually close to the neutral value. Experiments were conducted in 100 mL conical flasks containing 0.05 g of biochar and 50 mL of water solution with the initial ion concentration of 50 mg/L. The flasks were placed on an orbital shaker and shaken at 200 rpm for 24 h. The Cd 2+ and Cu 2+ contents in the solution were determined by ICP-OES, while the NH 4 + and PO 4 3− contents were determined spectrophotometrically using the standards DIN 38 406-E5-1 [76] and SIST EN ISO 6878:2004 [77]. Before analyses, samples were filtered through 0.45 µm filters.
To enhance biosorption capacity, the biochars were chemically modified with 2 mol/L KOH or HCl solution. For this purpose, 2 g of biochar was exposed to 50 mL of modification solution, which was shaken for 2 h. After modification, the biochar was rinsed several times with distilled water and dried at 105 • C before being used in the adsorption tests. Three different types of each biochar (each in two parallel runs) were tested for adsorption: unmodified, HCl modified, and KOH modified biochar. The removal efficiency of particulate ion species from the aqueous solution and the amount of ion adsorbed on the biochar (biosorption capacity) were calculated from the reduction of ion concentration in the solution using standard equations described in Tang et al. [78].

Results and Discussion
In this section, the proximate and ultimate analyses of the feedstock materials are presented and the results of the TGA are introduced. Further, the results of the kinetic analysis by applying KAS and FWO kinetic models are presented, and the thermodynamic parameters are noted. Finally, the results of the characterization of the pyrolysis products are described.

Characterization of Feedstock Materials
The results of proximate and ultimate analyses, heavy metals, and other parameters for the feedstocks used in this study (sewage sludge, T. latifolia plant, and digestates D1 and D2) are shown in Table 2.
In general, the digestates have higher ash content and lower volatile matter, carbon, and hydrogen content than undigested SS and TLP. Solid digestates D1 and D2 contained 58% and 60% volatiles, while undigested SS contained 71% and TLP 79%. The lower percentage of volatiles is a consequence of pre-treatment with the anaerobic digestion. Ash content was highest in the digestates (D1-36%, D2-31%), lower in SS (18%) and lowest in TLP (7%). On the other hand, TLP contained the highest content of fixed carbon (13%), followed by SS (11%) and both digestates (D1-7%, D2-9%). Elemental analysis revealed higher content of C in raw SS and TLP (42 and 46%) than in digestates (D1-32%, D2-35%). Undigested SS contained around 8% N, while TLP and digestates contained about half of this. The content of sulfur in the samples was low. The content of heavy metals was highest in the case of undigested SS, while digestates D1 and D2 contained slightly lower content of heavy metals. Among the heavy metals detected, the highest concentrations belonged to Zn and Cu, with Ni, Pb, Cr, and Cd also detected. Otherwise, the raw SS satisfies the limit values of heavy metals set in the Slovenian decree on the use of sewage sludge in agriculture [79] and, thus, could be used for agricultural purposes. TLP exhibited low content of heavy metals, and a high content of K + ions. The SS and digestates were rich in nitrogen as well as other nutrients, such as P, Mg, and Ca. Therefore, they could potentially be used as alternative sources for nutrient recovery or as soil enhancers. Further comparison of the digestates D1 and D2 revealed that digestate D2 contained lower content of H, N, and S elements, a lower amount of ash and heavy metals, and higher content of carbon, fixed carbon, and volatile matter.
The calorific value, i.e., higher heating value (HHV) reflects the amount of energy that can be released from a form of biomass when it is subjected to combustion, therefore, the determination of HHV is important as it provides valuable information regarding the bioenergy potential of the biomass [80]. The experimental HHV of both digestates was~13 MJ/kg, which is lower than the HHV of sewage sludge (20 MJ/kg) and TLP (17 MJ/kg). Both sewage sludge and TLP show similar calorific values as reported in the literature. Values between 11 and 22 were reported for SS [81], and the value of 18 MJ/kg was found for TLP [24]. The values are comparable with the values of other energy crops such as miscanthus (19 MJ/kg) and wheat straw (16 MJ/kg) [81]. Regarding the HHV of SS digestates, different values were found, from relatively high, 17 MJ/kg (Aragon-Briceno 2017), 18 MJ/kg [34] and 16 MJ/kg [43], to relatively low, 13 MJ/kg [42]. The theoretical HHV were also calculated using Equation (2) developed by Channiwala and Parikh [67]. The agreement between the experimental and theoretical values for SS and the digestate samples was good, while for TLP, the difference between the values was more significant.
However, based on their properties, the tested feedstocks have promising potential to be applied in further thermal degradation processes for energy recovery. Since they have quite diverse compositions, the characteristics and quality of the final products can vary greatly.
3.2. Thermogravimetric Analysis 3.2.1. Analysis of TG and DTG Curves Figure 1 shows TG and DTG curves for the analyzed feedstocks: digestates D1 and D2, raw sewage sludge and lignocellulosic T. latifolia. The curves for three different heating rates are shown: 15, 30, and 100 • C/min. The curve of TG represents the mass loss with respect to temperature and the curve of DTG represents the rate of mass loss with respect to temperature at a chosen heating rate. that can be released from a form of biomass when it is subjected to combustion, therefore, the determination of HHV is important as it provides valuable information regarding the bioenergy potential of the biomass [80]. The experimental HHV of both digestates was ~13 MJ/kg, which is lower than the HHV of sewage sludge (20 MJ/kg) and TLP (17 MJ/kg). Both sewage sludge and TLP show similar calorific values as reported in the literature. Values between 11 and 22 were reported for SS [81], and the value of 18 MJ/kg was found for TLP [24]. The values are comparable with the values of other energy crops such as miscanthus (19 MJ/kg) and wheat straw (16 MJ/kg) [81]. Regarding the HHV of SS digestates, different values were found, from relatively high, 17 MJ/kg (Aragon-Briceno 2017), 18 MJ/kg [34] and 16 MJ/kg [43], to relatively low, 13 MJ/kg [42]. The theoretical HHV were also calculated using Equation (2) developed by Channiwala and Parikh [67]. The agreement between the experimental and theoretical values for SS and the digestate samples was good, while for TLP, the difference between the values was more significant.
However, based on their properties, the tested feedstocks have promising potential to be applied in further thermal degradation processes for energy recovery. Since they have quite diverse compositions, the characteristics and quality of the final products can vary greatly. Figure 1 shows TG and DTG curves for the analyzed feedstocks: digestates D1 and D2, raw sewage sludge and lignocellulosic T. latifolia. The curves for three different heating rates are shown: 15, 30, and 100 °C/min. The curve of TG represents the mass loss with respect to temperature and the curve of DTG represents the rate of mass loss with respect to temperature at a chosen heating rate. Generally, the TG and DTG curves of the selected samples show similar characteristics at all three heating rates. The degradation of SS and TLP starts at lower temperatures (~150 • C) than the degradation of digestates (~200 • C), and it also ends earlier, at around 650 • C. The digestate samples show lower weight loss than the raw SS or TLP, implying that the AD pre-treatment has a significant effect on the thermal degradation of the biomass. The overall weight loss was highest for the TLP (75.1 wt.% on average), lower for SS (68.4 wt.%), and lowest for digestates (D1-54.1 wt.% and D2-54.6 wt.%). As TLP loses more weight than SS or digestates, more volatile matter is decomposed, so higher oil and gas yields than biochar yields are expected for this feedstock. The digestates gave the highest residue (45 wt.%) and showed quite similar TG and DTG profiles despite different feedstock compositions.

Analysis of TG and DTG Curves
The thermogravimetric data revealed that the decomposition of the tested feedstocks occurred in three main stages (see Figure 1 and Table 3). The first stage (stage I) is attributed to mass loss due to dehydration of the low boiling fractions, mainly evaporation of intracellular water from the samples [82]. This occurred at a temperature interval between 25 and 200 • C. In this stage, the digestates lose approximately 3 wt.% of weight, while undigested SS and TLP around 4.5 wt.% and 6.5 wt.%. The main decomposition step, active pyrolysis (stage II), takes place in the temperature range of 200-550 • C, with most organic matter volatilized in this step. The greatest weight loss for all samples was observed in this stage (on average 40 wt.% for digestates, 59.7 wt.% for SS and 54.6 wt.% for TLP). The weight loss of SS and TLP was faster than the weight loss of digestates. The weight loss at this stage can be ascribed to the degradation of carbohydrates, hemicellulose and cellulose [80]. In the case of SS feedstock, thermal degradation of amino acids and proteins also occurred, which originates mainly from the bacteria present in the SS [14]. According to Hung et al. [28], the remaining solid residue at the end of the second stage could contain large amounts of inorganic minerals, such as calcite (CaCO 3 ) and calcium phosphates (Ca 3 (PO 4 ) 2 , Ca 5 (PO 4 ) 3 (OH), and others). This could also apply to this study, as the presence of these components in biochars was later confirmed by XRD analysis. The last stage, passive pyrolysis (stage III), occurred at temperatures between 550 and 800 • C, where the degradation of high-temperature thermally stable components, such as lignin components happened. In contrast to SS and TLP, the digestates in this stage showed significant weight loss even at the highest temperatures (700-800 • C), which was associated with the deep decomposition of digestates, such as refractory organic matter, inorganic matter and char residues [12]. Decomposition of calcium carbonate and other minerals has been reported to occur in this temperature range as well [36].
The differences in the degradation mechanisms of the studied feedstocks are more evident from the DTG profiles. Their shape indicates that biomass decomposition incorporates more than one step. The DTG curves of the SS revealed two main overlapping peaks, the first (~300 • C) being associated with lipid degradation, while the second (~380 • C) is related to carbohydrate decomposition. The DTG curves of the TLP exhibited typical patterns of thermal degradation of lignocellulosic materials, as also observed in the case of camel grass [82], sawdust [14], or rice straw [29]. Lignocellulosic biomass usually consists of cellulose, hemicellulose, lignin, extractives, and a small portion of inorganic mineral matter [83]. The highest peak (~380 • C) corresponds to cellulose decomposition, which occurs between 325 and 400 • C with levoglucosan as the main pyrolysis product [83]. The shoulder before that peak (at~300 • C) is related to hemicellulose pyrolysis, which takes place between 250 and 350 • C and is represented by xylan [84]. The long tail at higher temperatures is attributed to the decomposition of lignin, which is the most difficult to degrade because it consists of aromatic rings, e.g., benzene rings, connected with ether bonds, which are more stable and degrade in a wider temperature range, between 160 and 900 • C [5]. In the DTG profiles of the digestates, the peaks of cellulose and hemicellulose are less emphasized, indicating the lower content of these compounds in the digestates, which is due to their degradation during the AD process. Detailed characteristics of the DTG curves, including the pyrolysis peak temperatures (T p ) and the maximum values of the DTG curves (DTG max ) for the analyzed samples are presented in Table 3. The pyrolysis peak temperatures and DTG max values were highest for TLP, while the other three SS-based feedstocks showed lower, but comparable values. For all feedstocks, a shift in T p for about 60 • C was observed when the heating rate was increased from 15 to 100 • C, reflecting that the heating rate affects the T p , and the pyrolysis process. The maximal value of DTG at a heating rate of 100 • C/min for the chosen sample was higher than that at 15 • C/min, suggesting that the heating rate enhances the thermal decomposition rate of the sample. This applies to all samples. Comparison of SS and digested SS (sample D1) showed that AD caused an increase in T p and DTG max values. Similar observations regarding the effect of AD on these two parameters were found in one of the previous studies [12].
The findings associated with the degradation of the feedstocks used in this study are in agreement with the findings on the thermal degradation of sewage sludge [14,40], SS digestate [43], T. latifolia [24], as well as grass and its digestate [85].

The Influence of the Heating Rate
The heating rate plays an important role in the pyrolysis process, since the rate of change of heat affects the characteristics of pyrolysis products, especially biochar characteristics, such as porosity, surface area, volatile compound content, and biochar yield [31]. Therefore, the optimum heating rate for each material should be determined to obtain the products with desired properties.
Increasing the heating rate from 15 • C/min to 100 • C/min resulted in an absolute decrease in the weight loss of the digestates, by about 10 wt.% for digestate D2 and 6 wt.% for digestate D1. On the other hand, the heating rate has little effect on the weight loss of TLP and SS, as the differences in weight loss were almost negligible (~1%). Thus, the biochar yield increases at higher heating rates for the digested samples, but remains almost the same for the raw samples, which could be attributed to the AD pre-treatment affecting the composition of the materials. During AD pre-treatment, components, such as cellulose and hemicellulose, were degraded; therefore, the digestates lost less weight during pyrolysis than the raw samples, which is reflected in a higher biochar yield for these samples. However, the heating rates used in this study represent a slow pyrolysis process that yields less gases and produce more biochar [83].

Kinetic Analysis
The knowledge of reaction dynamics and kinetic parameters is essential for the design of a pyrolysis process [82]. In this study, two iso-conversional methods were applied in the kinetic analysis, the Kissinger-Akahira-Sunose (KAS) and Flynn-Wall-Ozawa (FWO) models. To determine the kinetic parameters, activation energy (E α ), and pre-exponential factor (A), the linear fit plots were first constructed for all tested samples (digestates D1 and D2, sewage sludge and T. latifolia) using the KAS and FWO kinetic models, as shown on Figure S1 in the supplementary material. For TLP and SS, data for conversion values (α) between 0.1 and 0.9 were considered in the calculations, while for digestates D1 and D2, the data in the conversion range of 0.1-0.8 were applied. The data below or above these conversion degrees were excluded due to high fluctuations and low correlation coefficients. The correlation coefficients R 2 were slightly higher when the FWO kinetic model was used, but in general the values for both models were quite close. The correlation coefficients for linear plots of the T. latifolia plant were >0.92, for sewage sludge >0.98, for digestate D1 > 0.88 and for digestate D2 > 0.79. Both models showed good agreement with the data representing SS or the TLP sample, while in the case of digestates the correlations were high up to a conversion level 0.5, afterwards they apparently decreased.

Activation Energy (E α )
Activation energy is a barrier that must be overcome before a chemical reaction is occurred. It determines the reactivity of a material, sensitivity of a reaction rate, and is proportional to material stability [29]. The values of the activation energies E α calculated from the slopes of the linear plots at each degree of conversion are presented in Figure 2. The error bars represent confidence intervals with a confidence level of 95%.

Kinetic Analysis
The knowledge of reaction dynamics and kinetic parameters is essential for the design of a pyrolysis process [82]. In this study, two iso-conversional methods were applied in the kinetic analysis, the Kissinger-Akahira-Sunose (KAS) and Flynn-Wall-Ozawa (FWO) models. To determine the kinetic parameters, activation energy ( ), and pre-exponential factor ( ), the linear fit plots were first constructed for all tested samples (digestates D1 and D2, sewage sludge and T. latifolia) using the KAS and FWO kinetic models, as shown on Figure S1 in the supplementary material. For TLP and SS, data for conversion values (α) between 0.1 and 0.9 were considered in the calculations, while for digestates D1 and D2, the data in the conversion range of 0.1-0.8 were applied. The data below or above these conversion degrees were excluded due to high fluctuations and low correlation coefficients. The correlation coefficients R 2 were slightly higher when the FWO kinetic model was used, but in general the values for both models were quite close. The correlation coefficients for linear plots of the T. latifolia plant were >0.92, for sewage sludge >0.98, for digestate D1 > 0.88 and for digestate D2 > 0.79. Both models showed good agreement with the data representing SS or the TLP sample, while in the case of digestates the correlations were high up to a conversion level 0.5, afterwards they apparently decreased.

Activation Energy ( )
Activation energy is a barrier that must be overcome before a chemical reaction is occurred. It determines the reactivity of a material, sensitivity of a reaction rate, and is proportional to material stability [29]. The values of the activation energies calculated from the slopes of the linear plots at each degree of conversion are presented in Figure 2. The error bars represent confidence intervals with a confidence level of 95%. The activation energy determined with the KAS and FWO kinetic models varied strongly with the conversion level, with significant differences found between digestate and raw samples.
In both kinetic models, for SS and TLP samples increased gradually with increasing conversion level. Above the conversion level of 0.7 (stage III), a more significant increase was noticed, corresponding to the decomposition of lignin and proteins in the biomass. High values at higher conversion degrees were also reported for pyrolysis of SS and its co-pyrolysis with rice husks [33]. The maximum value of 167 kJ/mol for SS and 359 kJ/mol for TLP was calculated at a conversion level of 0.9 by the FWO model. The KAS model gave lower values (SS-154 kJ/mol, TLP-346 kJ/mol). The differences in activation energies between the models comes from the different approximations used to solve the temperature integral. For the digestates D1 and D2, the values increased slowly up to The activation energy E α determined with the KAS and FWO kinetic models varied strongly with the conversion level, with significant differences found between digestate and raw samples.
In both kinetic models, E α for SS and TLP samples increased gradually with increasing conversion level. Above the conversion level of 0.7 (stage III), a more significant increase was noticed, corresponding to the decomposition of lignin and proteins in the biomass. High E α values at higher conversion degrees were also reported for pyrolysis of SS and its co-pyrolysis with rice husks [33]. The maximum value of 167 kJ/mol for SS and 359 kJ/mol for TLP was calculated at a conversion level of 0.9 by the FWO model. The KAS model gave lower values (SS-154 kJ/mol, TLP-346 kJ/mol). The differences in activation energies between the models comes from the different approximations used to solve the temperature integral. For the digestates D1 and D2, the E α values increased slowly up to the conversion level of 0.4, after which a huge increase was observed, and the highest E α values for both digestates were calculated at a conversion level of 0.7. From this point on, the values declined. The increase in E α indicates endothermic reactions while the decrease is associated with exothermic reactions [86]. The decrease in E α at a higher degree of conversion may be ascribed to the porous structure of the intermediate formed, which increases diffusion, the release of volatiles, and further decomposition with metal, thus catalyzing the degradation process [69]. Besides, the formation of biochar is also reflected in a decrease of activation energy [82]. The E α for digestate D1 varied in the range of 66-351 kJ/mol for the KAS model and from 57 to 339 kJ/mol for the FWO model. The E α for digestate D2, with a more complex composition, were generally higher (FWO model: 70-401 kJ/mol, KAS model: 62-388 kJ/mol). The higher values of E α in the case of digested compared to undigested biomass were most likely the consequence of stabilization of biomass during the AD process. Anaerobic digestion promotes several biochemical reactions in the biomass in which the organic material is converted into methane and carbon dioxide [3], therefore digestates after AD contained less organic material and higher content of inorganic material, e.g., minerals, which impacts thermal degradation and causes an increase in E α at higher conversion levels. It seems that minerals and inorganic matter originated from SS act as a barrier and hinder the diffusion of heat and the release of degraded volatiles, causing E α to increase. Similar results were observed in one of the previous studies where minerals in manure feedstock also caused the increase of E α [29]. Different E α at different conversions illustrate the multi-step complex reaction mechanism of thermal decomposition of the analysed samples, depicted by the progressive change of E α with conversion [87]. In particular, digestates are composed of various constituents with different reactivities resulting from the differences in chemical nature and inherent structure of the constituent components and, therefore, each constituent contributes to the overall E α [69].
The higher E α values in the case of TLP compared to SS may arise from higher content of cellulose and lignin in this sample. The same is true for digestate D2, which likewise contained TLP, which is reflected in the higher E α due to the more complex structure of the sample due to the presence of lignocellulosic components.
Higher E α values were reported for cellulose than for hemicellulose in previous studies [5], while lignin was characterized by both lower and higher values than cellulose, depending strongly on the feedstock type. Thus, the strong increase in E α values at conversion levels above 0.7 for TLP could be related to lignin degradation. The E α values of both digestates and TLP were very close to each other up to conversion point 0.5, from that point on, the differences become larger. According to the results, pyrolysis of SS is the reaction that proceeds most easily, followed by pyrolysis of TLP, while the highest barrier has to be overcome in the pyrolysis of digestates, particularly digestate D2.
The literature review regarding E α revealed that the E α values for the feedstocks analysed in this study are comparable to those reported for similar feedstocks. A detailed comparison of activation energies and other kinetic and thermodynamic parameters, which will be discussed in detail in the following sections, is presented in Table 4. For SS, the E α values in a wider range were reported, between 46 and 232 kJ/mol [69], while for T. latifolia a narrow area was stated, 135-204 kJ/mol [24]. For SS digestate, the values ranged between 49 and 198 kJ/mol in one of the studies [34], and from 90-227 kJ/mol in another [42]. The upper limit of E α values for SS digestate obtained in this study is higher than in the case of other digestates, but it must be considered that the conversion range for reported E α could be different. No data for E α of digestates composed of SS and lignocellulosic biomass can be found in the literature. Nevertheless, some correlations could be made with swine manure digestate [45], corn stover digestate [88], roadside grass digestate [85], and other lignocellulosic rich digestates [25,44]. As shown in Table 4, the E α varied greatly with the type of feedstock. A comparison for some other lignocellulosic materials (para grass, camel grass, castor residue, canola residue, etc.) is also carried out.  [71] a Distributed activation energy model.

The Pre-Exponential Factor (A)
The values of pre-exponential factors (A) for the analyzed feedstocks, calculated by the KAS and FWO models, are presented in Table 5. The pre-exponential factor describes the solid phase reaction dynamics and reaction chemistry, which is an essential factor for the optimization of biomass pyrolysis and is directly related to the material structure [69]. In general, the pre-exponential factors showed the same variational trend as E α . For example if E α increases with the conversion level, then A increases as well. The values of A calculated with the FWO model ranged between 12 × 10 1 -4.85 × 10 13 1/s for SS and between 2.18 × 10 3 -4.83 × 10 28 1/s for TLP. For these two samples, the values were in almost the whole conversion range, except for the highest conversions below 10 9 1/s, which could mainly indicate a surface reaction. On the other hand, if the reactions are not surface dependent, low A values may also indicate a closed complex [86]. The preexponential factors for SS and TLP are comparable to the pre-exponential factors of similar feedstocks reported in the literature, while a much wider range for the A values was calculated for digestates D1 and D2, as for the digestates from other studies (see Table 4). The explanations could be found in the presence of SS in the digestate samples and the more complex composition of digestates, since digestates contain both organic and inorganic material. The A values calculated with the FWO model ranged for digestate D1 between 6.73 × 10 3 -3.80 × 10 30 1/s and for digestate D2 between 1.37 × 10 4 -5.43 × 10 34 1/s. The KAS model gave similar results. The A values for digestates D1 and D2 were at lower conversion levels <10 9 1/s, while at conversion levels above 0.4 they were >10 9 1/s. This behavior indicates a multi-phase reaction due to the complex nature of these feedstocks, where degradation is slower and the reactions require more energy and a higher rate of molecular collisions [45]. Therefore, higher values of A indicate a simple complex [86].

Kinetic Compensation Effect
To characterize the dependence of E α and lnA on the conversion degree, the kinetic compensation effect is frequently used [70]. The relation between the pre-exponential factors (lnA) and activation energy (E α ) for the tested feedstocks is presented in the supplementary material, in Figure S2. For all samples, the linear relationship between Arrhenius parameters was observed in the case of both kinetic models (KAS and FWO), which can be expressed as follows: lnA = aE α + b. This reflects that there exists a compensation effect between E α and lnA during pyrolysis, where the constants a and b refer to the compensation coefficients [90]. The correlation coefficients R 2 for the linear fit plots for digestate D1 were >0.97 and for digestate D2 > 0.93. For SS and T. latifolia, the R 2 were >0.99. High correlation coefficients indicate that the KAS and FWO kinetic models are suitable for describing the pyrolysis data of the tested feedstocks in the chosen conversion range.

Thermodynamic Analysis
The values of thermodynamic parameters (enthalpy ∆H, Gibbs free energy ∆G, and entropy ∆S) for sewage sludge, T. latifolia and solid digestates D1 and D2, calculated at DTG peak temperatures (heating rate of 15 • C/min) using the KAS and FWO methods, are shown in Table 5.

Enthalpy (∆H)
The enthalpy ∆H for all feedstocks changed significantly with the conversion level and followed a similar trend as the activation energy E α ( Table 5). The ∆H for SS ranged between 36 and 163 kJ/mol for the FWO and 27-150 kJ/mol for the KAS methods, while for TLP it ranged from 62-354 kJ/mol for the FWO and 53-341 kJ/mol for the KAS methods. The KAS model gave lower values in all cases. Positive values of ∆H indicated an endothermic process, implying that an external source of energy needs to be provided to convert the biomass to its transition state [4]. The ∆H for TLP in the literature ranged from 130-199 kJ/mol [24], while for SS it ranged from 11 kJ/mol [89] to 318 kJ/mol [41] depending on the conversion level. As shown in Table 5, the lowest ∆H values at the specific conversion point were calculated in the case of SS, followed by TLP and digestate D1. The feedstock with the highest ∆H was digestate D2 (65-397 kJ/mol, calculated by the FWO method). For comparison, the ∆H of the swine manure digestate in one of the earlier studies ranged between 179 and 219 kJ/mol [45]. Otherwise, ∆H represents the total energy required for pyrolysis of biomass and its conversion into final products such as biogas, bio-oil and biochar [41]. Therefore, digestate D2 requires the highest amount of energy to be provided for the formation of the final products compared to other samples. The ∆H differed from E α at each conversion point by 4.70 kJ/mol for SS, 5.15 kJ/mol for TLP, 4.76 kJ/mol for digestate D1, and 4.82 kJ/mol for digestate D2. The difference between E α and ∆H indicates the possibility of the pyrolysis reaction occurring (Rasam et al., 2020). Small differences indicate that only a small amount of additional energy (~5 kJ/mol) is required to form the final product.

Gibbs Free Energy (∆G)
The Gibbs free energy ∆G, also called free enthalpy, reflects the total energy increase of the system for the formation of the activated complex and thus shows bioenergy potential of the biomass [86]. The ∆G calculated by the FWO method for SS, digestate D1 and digestate D2 were in the range of 161-167 kJ/mol, 160-168 kJ/mol, and 161-170 kJ/mol, respectively. According to the results presented in Table 5, these three feedstocks have very similar bioenergy potential. The T. latifolia plant showed the highest ∆G values among all feedstocks (174-183 kJ/mol) and had the highest bioenergy potential. In contrast to the enthalpy ∆H, the Gibbs free energy ∆G was quite stable and showed only little variation with the conversion degree. The values calculated with the KAS model were very similar. The Gibbs free energies of the tested feedstocks are comparable to those for SS, TLP and other lignocellulosic materials in the literature (see Table 4).

Entropy (∆S)
The entropy ∆S of a system represents the degree of disorder in a reaction system, and in the context of pyrolysis it reflects the degree of arrangement of carbon layers in biochar samples [38]. The ∆S for digestate D1 ranged from −185 to 327 J/(mol·K) and for digestate D2 from −180 to 406 J/(mol·K). These values are in agreement with the ∆S values of swine manure digestate, sewage sludge, canola residue and para grass (Table 4). Values were mostly negative at lower conversion levels and positive at higher levels ( Table  5). The occurrence of both negative and positive values reflects that the thermal conversion of the digestates D1 and D2 is more complex than the conversion of SS and TLP, both of which had negative ∆S throughout the conversion range (with one exception at the highest conversion point of 0.9 for TLP). At the conversion points with negative ∆S, the ∆G values were higher than ∆H, suggesting that a significant fraction of heat energy provided to the system is excess or free energy [38]. The occurrence of negative ∆S and positive ∆G values implies that thermal decomposition of biomass is a non-spontaneous process [91].
Negative ∆S values illustrate a more organized structure of the activated complex (product) compared to the feedstock and that the degree of disorder of the activated complex is lower compared to the feedstock, therefore the reactivity is low with long reaction times [29]. On the other hand, a positive ∆S indicates that the material is far from its thermodynamic equilibrium and the reactivity is high with short reaction times [54].

Characterization of Biochars
The properties of biochar have great influence on its further use and depend on various parameters, such as type of feedstock, temperature [55], heating rate [53], and residence time [31]. The obtained biochars were characterized by chemical analysis, elemental analysis, XRD, FTIR, and SEM-EDS analyses, the results of which are presented below. The results of the cress seed germination test and biosorption experiments performed on digestate derived biochars are also presented.

Chemical Characteristics of Biochars
The pyrolysis temperature significantly affects the distribution and properties of the final products [30]. Therefore, the chemical composition of the produced biochars was determined, focusing on elemental, heavy metal and nutrient analysis. The parameters varied depending on the type of feedstock. Comparison of the parameters between the biochars (Table 6) and feedstocks (Table 2) showed that the content of elements H, N, O and S in the biochars decreased due to the degradation of organic material. The content of C decreased in all biochars except TLP biochar, where it increased. The opposite trend in carbon content suggests that the pyrolysis mechanisms of TLP and the other three feedstocks that contained sewage sludge differed. Yin et al. [92] found a similar trend in the pyrolysis of SS and walnut shell. The decrease of C content in SS biochars was also noticed by other researchers [32]. The decrease in N content in TLP biochar was lower than that in biochars derived from SS and SS digestate. The explanation could be found in the chemistry of nitrogen in the feedstocks, as nitrogen is more volatile than the other nutrients and the concentrations may change differently depending on the biomass type and the chemistry of its binding [83]. Total nitrogen decreased mainly due to the loss of volatile nitrogen species (NH 4 and/or NO 3 ), which tend to convert to stable pyridine compounds at high pyrolysis temperatures [78]. Along with the decrease of C, H, N, and O, the molar ratios of H/C, O/C, and N/C also decreased in biochars. The H/C ratio together with volatile organic matter (VOM) content could be used as a parameter for the carbonization degree of biochar [32], because lower H/C ratio and VOM content indicate greater carbonization. In this study, digestate derived biochars showed the lowest H/C ratios. The lower ratios of H/C and O/C also indicated higher aromaticity and a less hydrophilic biochar surface [78]. Biochars with higher aromaticity are more resistant to decomposition and could be retained in the soil longer [93]. The O/C ratio of digestate derived biochars was higher than that of undigested SS and TLP, implying that digestate biochars contained more oxygen-containing functional groups. Digestate derived biochars showed very similar ratios, although the composition of their feedstocks differed. The changes in H/C and O/C also indicate the occurrence of dehydrogenative polymerization and dehydration polycondensation during pyrolysis, with significant loss of oxygen and aliphatic hydrogen [94]. The H/C and O/C ratios of the biochars from this study are consistent with the ratios of the sludge-based biochars obtained in other studies [51,78]. The decrease in N/C ratio in biochar mainly resulted from the reduction of N-related functional groups [94]. The biochar yield was highest for pyrolysis of digestates (44.8% for B-D1 and 45.5% for B-D2), lower for SS (32.5%), and lowest for TLP pyrolysis (25.6%). Biochar yields and higher heating values listed in Table 6 are comparable with the data for SS [95], and other bio-waste [50] given in the literature. The ash content in the biochars increased compared to the feedstocks. Digestate derived biochars contained more ash and had higher pH than biochars obtained from raw biomass. Ash content data are important because the ash plays an important role in biochar properties, such as surface area, pore volume, aromaticity, carbon stability, and sorption capacity [51]. The higher heating value of biochars was lower compared to that of the feedstocks.
The biochars showed alkaline characteristics as their pH value ranged from 9.4 to 11.2. The alkaline characteristics come from the release of alkali salts from the pyrolytic structure and organic nitrogen present as amine functionalities, which transforms into pyridine-like compounds [93]. The presence of metal oxides and minerals also leads to higher pH of the biochar, and high pH of the biochar ensures the safety of heavy metal leaching [52]. Biochars obtained from SS in other studies also showed alkaline properties, especially those obtained at higher pyrolysis temperatures, as pH increases with increasing temperature [96]. The content of heavy metals and macronutrients (P, Ca, Mg, K) in the biochars increased due to mass loss because of thermal degradation. Similar observations were also noted by Liu et al. [96]. However, potentially toxic elements in biochar, such as heavy metals, are usually transformed from bioavailable fraction into a more stable form during thermal conversion [53].
The content of heavy metals in biochar D2 was lower than that in biochar D1. This is most likely due to the co-digestion of SS with TLP, which caused the reduction of total heavy metal content in biochar D2. Co-digestion also improved the content of C and reduced the ash content in the biochar. The higher organic matter content and lower heavy metal content in biochar D2 indicated the higher quality of this biochar. Since biochar obtained from SS or other lignocellulosic biomass has been extensively studied, while there is a lack of knowledge on biochar derived from various digestates, the digestate derived biochars in this study were subjected to further characterization studies, biosorption experiments, and fertility tests.

FTIR Analysis
The FTIR spectra of the feedstocks (sewage sludge, T. latifolia, and digestates D1 and D2) and the corresponding biochars (B-SS, B-TLP, B-D1, B-D2) obtained after pyrolysis of the feedstocks at 800 • C, are presented in Figure 3a,b, respectively. Before pyrolysis, several peaks were common for the tested feedstocks (Figure 3a). A broad peak in the range 3500-3100 cm −1 corresponds to the vibrations of hydroxyl groups (-OH) of water molecules and carbohydrates [97]. The vibrations of N-H groups also appear in this area due to presence of amines and amides. Peaks between 3000 and 2800 cm −1 indicate the aliphatic (-CH x ) vibrations. The peak at 1647 cm −1 represents aromatic C=C vibrations and peaks at around 1400 cm −1 are attributed to aliphatic groups -CH 2 and -CH 3 [87]. The peak at 1073 cm −1 represents C-O and P-O bonds [30]. Lignin in the raw T.  [14]. Peaks at 777 cm −1 and 669 cm −1 are associated with aromatic hydrogen. SS and digestates shown the common peak at 1560 cm −1 associated with amide (-CO-NH-) originated from sewage sludge proteins [78]. The bands between 1550 and 1400 cm −1 are related to nitrogen compounds (N-H and N-O), while the peaks in the 400-600 cm −1 range are from metal-oxygen bonding [98]. The sharp peak at 871 cm −1 could correspond to calcium carbonate. The main differences between digested and undigested feedstocks are related to the AD pre-treatment that destroys the complex lignocellulose structure, which is reflected in the reduction of the intensity of some peaks. For example, the peak representing the C-O-C group (1240 cm −1 ) of hemicellulose and the linkages between hemicelluloses and lignin [87] is lower in the digestates. The results are in agreement with the findings of previous studies, where AD likewise caused a decrease in carbohydrates, protein (amide) compounds, fats, and lipids on the one hand, and an increase in aromatic compounds and polysaccharide groups (C-O) in the digestates on the other [12].  The FTIR spectra of the biochars (Figure 3b) reflect significant changes in chemical bonds and functional groups after pyrolysis of the feedstocks. The basic functional groups representing organic components, such as hydroxyl (-OH), amine (-NH) and aliphatic groups (-CHx), have almost disappeared, while the intensity of aromatic C=C ring stretching vibrations increases slightly. The disappearance of aliphatic groups in the biochars proved that the alkane groups were involved in the carbonization process [97], revealing that organic fatty hydrocarbons were converted into aromatic structures or decomposed into methane, carbon dioxide, and other gases during pyrolysis [51]. The disappearance of the majority of peaks in the case of TLP biochar illustrated deep decomposition of this sample due to the high pyrolysis temperature. The FTIR spectra of the SS biochar and digestate derived biochars were very similar. They showed a sharp peak at 1036 cm −1 , which besides Si-O-Si vibrations also represents the vibrations of the PO4 3− group [47]. The absorption peak at 984 cm −1 refers to Al-O bonds [98]. Significant peaks were also detected The FTIR spectra of the biochars (Figure 3b) reflect significant changes in chemical bonds and functional groups after pyrolysis of the feedstocks. The basic functional groups representing organic components, such as hydroxyl (-OH), amine (-NH) and aliphatic groups (-CH x ), have almost disappeared, while the intensity of aromatic C=C ring stretching vibrations increases slightly. The disappearance of aliphatic groups in the biochars proved that the alkane groups were involved in the carbonization process [97], revealing that organic fatty hydrocarbons were converted into aromatic structures or decomposed into methane, carbon dioxide, and other gases during pyrolysis [51]. The disappearance of the majority of peaks in the case of TLP biochar illustrated deep decomposition of this sample due to the high pyrolysis temperature. The FTIR spectra of the SS biochar and digestate derived biochars were very similar. They showed a sharp peak at 1036 cm −1 , which besides Si-O-Si vibrations also represents the vibrations of the PO 4 3− group [47]. The absorption peak at 984 cm −1 refers to Al-O bonds [98]. Significant peaks were also detected between 400 and 600 cm −1 reflecting vibrations of different oxides and silicates, such as Fe-O, Mg-O, Si-O-Si, and Si-O-Al vibrations [99]. Small peaks between 600 and 800 cm −1 could be assigned to aromatic and hetero-aromatic compounds [93]. The differences in the composition of digestates did not essentially affect the functional groups of the biochars, as the FTIR spectra of biochars B-D1 and B-D2 are very similar. According to the FTIR analysis, the SS-based biochars contain functional groups that could cooperate in the adsorption process, and therefore could potentially be used as adsorbents for various ions from wastewater.

SEM-EDS Analysis
SEM images of digestate derived biochars (B-D1 and B-D2) are shown in the supplementary material in Figure S3a,b, respectively. The biochars consisted of irregular grains of various compositions and had a rough surface with porous structure containing small holes and pits on the surface. Differences in the composition of digestates had no special effect on the morphology of the biochars. The structure was consistent with the data regarding the specific surface area. The EDS spectra of biochars B-D1 ( Figure S3c) and B-D2 ( Figure S3d) revealed high contents of C, O, Si, P, K, Ca, and Mg in the samples, and Cl, Na, Al, and Fe were also detected. However, the contents of these elements varied among the samples. For example, biochar B-D2 contained a higher amount of C and lower amounts of heavy metals, while in biochar B-D1 Cu was also found. The results of the EDS analysis mainly agree with the results of the elemental and chemical analysis.

XRD Analysis
X-ray diffraction (XRD) analysis was performed to identify the crystalline phases in the digestate derived biochars. The XRD diffractograms of biochars B-D1 and B-D2 are presented in the supplementary material ( Figure S4a,b). The XRD analysis revealed that the biochars have similar mineral compositions despite differences in the composition of feedstocks. Nevertheless, some differences in the contents of mineral phases were found. The main crystalline phases in biochar samples B-D1 and B-D2 were attributed to calcium phosphates, with hydroxyapatite (with variable Cl content) and whitlockite (with possible presence of Na) as the main representatives. Silicates were present in the form of mineral quartz (SiO 2 ) and Al silicates (with variable Mg content). Ca-Mg-carbonates (Mg calcite) were also identified in the biochars, although Mg ions could be substituted by Fe ions, which were likewise present in biochars. Traces of other phases, such as iron oxides (hematite-Fe 2 O 3 , magnetite-Fe 3 O 4 ), aluminum oxide, and pure carbon phases were detected as well. The obtained biochars have similar mineral characteristics as biochars obtained from sewage sludge [39] or sewage sludge digestate [58] in other studies.

The Potential of Digestate-Derived Biochars for Use as a Soil Enhancer
Biochars contain a range of macro-and micro-nutrients, making them valuable as soil amenders to enhance plant growth and to sustain and increase crop yield [83]. The potential of the digestate derived biochars (B-D1 and B-D2) for use as a soil enhancer was evaluated by performing a cress seed germination test. The results of the root length (RL) index and Munoo-Liisa vitality (MLV) index obtained after cress seeds (Lepidium sativum L.) were exposed to different concentrations of biochars B-D1 and B-D2 (2%, 6%, 10% and 15%) for 72 h, are shown in Figure 4. [72]. The same concentration was used in the cultivation of cucumber seeds [61]. In a other study, 10 wt.% of SS biochar was optimal for improving cucumber growth, w cucumbers absorbing small proportions of potentially toxic elements from the bioch [101]. The positive effects of biochar addition to soil were likewise observed by Rehm et al. [63].  The RL and MLV indexes of the control sample are given for comparison. The best results of RL and MLV indexes for both biochars were achieved when using 10 wt.% concentration of biochar. RL is expressed as the percentage difference of the root length of the tested material compared to the root length of the control sample. The highest RL index for biochar B-D1 was 206% and for biochar B-D2 182%. Both significantly exceeded the RL index of the control sample (100%). The highest MLV index, that compares the germination rate and the average lengths of roots in the test and control samples, was 206% for biochar B-D1, while for biochar D2 it was 195% (at 10 wt.% concentration). The concentration of 2 wt.% gave the worst results in both cases, even lower than the control sample, and therefore it is too low. At 15 wt.% concentration, the RL and MLV indexes of both biochars decreased, especially those of biochar B-D1. This could be connected with the phytotoxic effect of the biochars on the cress seeds. Nevertheless, the values of the RL and MLV indexes were still higher than in the case of the control sample. The phytotoxicity could occur due to the higher content of heavy metals in the biochars, especially Zn and Cu. High heavy metal concentrations negatively affect plant growth and biomass yield, and the toxic effect of heavy metals and their bioaccumulation in the plants is one of the major problems in the application of SS biochars as a soil amenders [63]. For example, Song et al. reported the problem of accumulation of Zn and Cu in garlic root and bulb [62]. The content of bioavailable heavy metals in the biochars can be efficiently reduced by selecting higher pyrolysis temperatures [100]. In addition, biochars derived at higher pyrolysis temperatures were reported to promote wheat growth more than biochars derived at lower temperatures [72]. Since the biochars in this study were obtained at relatively high temperature, this could be one of the reasons for their good performance and low toxicity.
Biochar B-D1 generally gave better results than biochar B-D2, which is a consequence of the different compositions of these two samples. Biochar B-D1 contained more P and Mg, while biochar B-D2 contained more N, K, and Ca. The advantage of using biochar B-D2 instead of biochar B-D1, despite lower RL and MLV indexes, is the lower content of heavy metals in this biochar. According to the results, the biochars obtained from digestates D1 and D2 have good potential to be used in agriculture as alternative sources of nutrients for plant growth. The optimum concentration for both biochars is around 10 wt.%.
The results of the germination test are comparable to the results of similar tests performed for SS biochars in previous studies, while the results cannot be compared with those for SS-digestate derived biochars, as these studies are quite rare. The concentrations of SS biochars of up to 5 wt.% were found to be efficient in a wheat seed germination test [72]. The same concentration was used in the cultivation of cucumber seeds [61]. In another study, 10 wt.% of SS biochar was optimal for improving cucumber growth, with cucumbers absorbing small proportions of potentially toxic elements from the biochar [101]. The positive effects of biochar addition to soil were likewise observed by Rehman et al. [63].
The soil pH values at the tested biochar concentrations ranged from 4.7 to 6.4 for biochar B-D1 and from 4.8 to 6.7 for biochar B-D2. The soil containing biochar B-D2 had a higher pH due to the higher pH of this biochar (the pH of B-D1 was 11.05 and that of B-D2 was 11.22, at biochar/water ratio of 1:20). Since the biochars have alkaline characteristics, no additional chemicals were added to the soil to ensure optimum pH for plant growth, i.e., between 5.5 and 6.5, according to the standard [73]. Besides improved soil fertility due to pH amendment, there are also some other benefits of using biochar in agriculture; it can increase the amount of bacterial biomass in the soil [102], improve the quality of nutrient-deficient soils, retain nutrients (especially N in permeable soils), improve carbon sequestration, supplement nitrogen fixation, and reduce bioaccumulation of heavy metals and polycyclic aromatic hydrocarbons (PAHs), which improves crop productivity [103]. However, since each biochar has unique characteristics, its fertility potential and phytotoxic effects should be carefully evaluated. Although digestate-derived biochars shows promising potential for use as a soil enhancer, further studies on the leaching of heavy metals and their accumulation in plants should be conducted to evaluate the possibility of their actual use for this purpose.

Biosorption Potential of Digestate-Derived Biochars
Biochars have specific properties such as large specific surface area, porous structure, and enriched functional groups which make them suitable as adsorbents for the removal of various pollutants from wastewater [103]. They can also be physically or chemically modified to produce so-called activated carbons, which have higher surface area and lower ash content [35]. Chemical activation also reduces mineral matter, activates carbonaceous materials, and increases the number of surface functional groups, which provides better cation and anion exchange properties [31]. In this study, digestate-derived biochars (B-D1 and B-D2) and their modifications were tested as biosorbents for the adsorption of NH 4 + , PO 4 3− , Cd 2+ and Cu 2+ ions from a water solution at an initial concentration of 50 mg/L (pH 7). To enhance the biosorption capacity, the biochars were chemically modified by KOH or. HCl. The results of the biosorption experiments performed with HCl modified, KOH modified or unmodified biochars B-D1 and B-D2 are shown in Figure 5. The adsorption capacities for Cu 2+ and Cd 2+ ions obtained in this study were sligh higher than those reported in other works, but the comparison is difficult because biosorption properties of biochars depend highly on the pyrolysis temperature and ty of modification, while the initial ion concentrations also varied. For Cu 2+ adsorption by biochar, one of the studies reported a capacity of 5.3 mg/g (initial conc. of Cu 2+ 100 mg [109], while another reported 11 mg/g [110]. Biosorption capacities of up to 89 mg/g Cu 2+ and 93 mg/g for Cd 2+ were achieved with hydroxyapatite-modified sewage slud biochar, and the capacity lower than 15 mg/g with unmodified biochar at initial conc. 100 mg/L [111]. Similar removal capacities for SS biochar of around 20 mg/g were obtain at a Cd 2+ concentration of 50 mg/L in studies performed by Chen et al. [52] and Gao et [48]. When SS biochar obtained by an electromagnetic induction heating method w used, a biosorption capacity of 32.3 mg/g for Cd 2+ ions (100 mg/L) was achieved [32]. Co pared with the above results, the biochars from this study showed good adsorption p formance for Cu 2+ and Cd 2+ ions, so their application as biosorbents for the removal heavy metals from wastewater could be possible. Further experiments on multi-metal osorption or biosorption of multiple pollutants need to be performed in addition to experiments with real wastewater.

Conclusions
In this work, kinetic and thermodynamic analyses of two types of solid digestate su jected to pyrolysis process were presented: (i) sewage sludge digestate and (ii) digest obtained from co-digestion of sewage sludge and lignocellulosic biomass-specifica the plant T. latifolia. Pyrolysis of raw SS and TLP was performed as well for the compa son. Based on the experimental results, the following conclusions were made: • Thermogravimetric analysis revealed that the digestate samples had lower weig Both biochars showed relatively low adsorption capacities for NH 4 + and PO 4 3− ions, although PO 4 3− adsorption was slightly better. In general, biochar B-D1 showed higher affinity for NH 4 + ions, while biochar B-D2 for PO 4 3− ions. The best results for PO 4 3− adsorption were achieved with KOH modified biochars, then with HCl modified biochars, while unmodified biochar even gave negative biosorption capacities (Figure 5a). This could be explained by the leaching effect of PO 4 3− ions from biochars [104]. In the case of the modified biochars, leaching was not possible because PO 4 3− ions were already leached during modification with HCl or KOH. However, the highest biosorption capacities for PO 4 3− ions were obtained in the case of KOH modified biochar, 8.91 mg/g for biochar B-D1 and 13.89 mg/g for biochar B-D2. The corresponding removal efficiencies were 15.6% (B-D1) and 24.9% (B-D2). The binding of ions on the biochar surface can take place in several ways, via physical adsorption, chemical adsorption, electrostatic interaction, precipitation, complexation of ions and ion exchange process [103]. Lewis acid-base interactions, electrostatic interactions, and ligand exchange are mentioned as among the most common controlling mechanisms for PO 4 3− removal with SS biochars [105], which could also be applicable to this study.
Regarding the adsorption capacities of biochars for PO 4 3− ions, the values in the literature vary considerably, as the removal efficiency is closely related to the biochar type, modification and pH of the solution. Yin et al. [92] reported capacities of around 50 mg/g for SS biochar at a PO 4 3− conc. of 50 mg/L, while Xu et al. [106] achieved an adsorption capacity of 15.2 mg/g at an initial conc. of 80 mg/L. The PO 4 3− -P adsorption capacity of the dolomite-modified SS biochar was 19.9 mg/g (conc. of 50 mg/L) [57], while Ca-rich SS biochar showed a capacity of 27.4 mg/g at a PO 4 3− conc. of 40 mg/L [60]. A much lower P uptake was reported in another study, less than 1 mg/g was adsorbed at an initial concentration of 50 mg/L, but it must be considered that the biochar was not modified [49]. On the other hand, the adsorption capacity on pyrolusite-activated SS biochar was 10.8 mg/g, (conc. of 50 mg/L) [97].
The adsorption of NH 4 + ions was likewise most efficient when KOH-modified biochars were used (Figure 5b). Capacities of 4.62 mg/g (9.1% removal efficiency) for biochar B-D1 and 4.25 mg/g (8.6%) for biochar B-D2 were achieved. Modification with HCl negatively affected the biosorption capacity of NH 4 + ions, as the removal efficiencies were lower than in the case of unmodified biochars. Interestingly, in contrast to this study, the modification of wheat straw biochar using a combination of HCl and FeCl 3 increased the efficacy of the biochar in treating ammonium-contaminated wastewater [59]. Otherwise, the biosorption capacities for NH 4 + ions achieved here were slightly higher than in other studies due to the KOH modification of the biochar. The NH 4 + adsorption capacity of unmodified biochars is generally low, <20 mg/g [107]. In addition, sewage sludge biochars generally have a lower biosorption capacity for NH 4 + ions than biochars derived from other organic materials. The biosorption capacity of 1.4 mg/g was achieved when SS biochar was used for the adsorption of NH 4 + ions at a conc. of 80 mg/L [78]. Yin et al. [92] reported even lower capacities, 0.6 mg/g (at a conc. of 50 mg/L), while co-pyrolysis of SS with walnut shells improved the biosorption capacity up to 3 mg/g. The results of NH 4 + biosorption capacity from this study are much closer to the biosorption capacities obtained by biochars derived from different wetland plant species, which have capacities between 0.8 and 5.5 mg/g at the same conc. of NH 4 + ions (50 mg/L) [104]. However, there are several factors that affect the biosorption potential of biochar and its affinity for certain ionic species. It has been reported that the specific surface area of the adsorbent is one of the factors that significantly affects NH 4 + adsorption, while it does not affect PO 4 3− adsorption [92], because the surface area of biochar is mostly negatively charged. The specific surface area, average pore size, and pore volume of biochar B-D1 were equal to 32.9290 m 2 /g, 7.4885 nm, and 0.0563 cm 3 /g, respectively, while biochar B-D2 had higher surface area of 60.0527 ± 0.5038 m 2 /g, lower pore size (6.6904 nm), and higher pore volume (0.0788 cm 3 /g). Although the surface area of biochar B-D2 was higher than that of biochar B-D1, its adsorption capacity for NH 4 + ions was lower. However, the specific surface area of the tested biochars is comparable to the specific surface areas reported in the literature. For example, a specific surface area of 101.9 m 2 /g was measured for biochar derived from manure digestate (at 800 • C) [28], while a specific surface area between 15 and 89 m 2 /g was reported for sewage sludge biochars derived at high temperatures (600-900 • C) [48,51,100]. Higher pyrolysis temperatures (>700 • C) generated more pores and higher surface area due to high aromaticity caused by thermal decomposition of lignocelluloses and volatilization of inorganic minerals [28]. The surface area values of lignocellulose derived biochars are generally in a larger range of 2-500 m 2 /g than those of SS, because the compact nature of sewage sludge restrict the formation of developed porosity structures [100].
Besides the surface area, the oxygen-containing surface functional groups have a great influence on the adsorption capacity of NH 4 + ions, especially alkyl and carboxyl groups form chemical or electrostatic interactions with NH 4 + ions [92]. Therefore, biochars with higher O/C ratios could have a higher NH 4 + adsorption capacity [104]. The O/C ratio of unmodified biochars B-D1 and B-D2 was almost the same (0.09 and 0.10), therefore, it could not significantly impact the adsorption capacity. On the other hand, the coexistence of P, Mg and different metal elements on the biochar surface also contributes to NH 4 + removal. Since biochar B-D1 contained higher amounts of metals, as well as P and Mg, than biochar B-D2, this could explain its better performance in NH 4 + biosorption. The presence of surface functional groups and metals on the biochar surface is likewise crucial for the adsorption efficiency of PO 4 3− ions, as ligand exchange could occur between metal oxides and PO 4 3− ions [97]. Furthermore, elements such as Ca, Si, Al, Fe, Ca, and Mg could serve as active sites and react with PO 4 3− through complexation or formation of precipitates, with Mg and Ca in particular significantly promoting PO 4 3− adsorption due to strong divalent cation bridging [107]. A higher Ca/P ratio of biochar B-D2 compared to biochar B-D1 reflects the higher adsorption capacity of biochar B-D2 for PO 4 3− ions. Both biochars had a similar Mg/P ratio, so its influence was less significant.
The binding between functional groups and selected ions is also highly affected by the pH of the solution. The optimal pH value for NH 4 + adsorption was reported in the range of 7-9, while PO 4 3− could be adsorbed in a wider pH range, between 4 and 9 [92]. Lower pH values cause the protonation of functional groups on the biochar surface and the removal efficiency of NH 4 + could therefore be lower [107]. This could explain the lower capacities achieved when HCl modified biochar was used, as it lowered the pH of the solution (despite initial adjustment) compared to KOH modified biochar, which increased the pH of the solution. Another reason for the better performance of KOH modified biochar compared to HCl modified biochar is most likely due to the higher increase in the specific surface area of the biochar, as alkali treatment could significantly increase the specific surface area [108], which is one of the major factors affecting NH 4 + adsorption. The results of adsorption of heavy metals (Cu 2+ and Cd 2+ ) performed at the same experimental conditions as adsorption of NH 4 + and PO 4 3− ions are presented in Figure 5c,d. KOH modified biochars were found to be the most efficient for the biosorption of Cu 2+ ions, followed by unmodified biochars. The highest biosorption capacity for Cu 2+ ions was achieved with biochar B-D1, 48.45 mg/g (removal efficiency >99%). Biochar B-D2 showed very similar biosorption capacities. Modification of biochars with HCl has a negative effect on Cu 2+ biosorption, as well as on Cd 2+ biosorption. The explanation for the better performance of the KOH modified and unmodified biochars over the HCl modified biochars could be connected with the alkalinity properties of these biochars. However, it is interesting to note that the KOH modification decreases the pH of the biochars. For biochar B-D1, the decrease from pH 11.05 (unmodified biochar) to pH 9.87, and for biochar B-D2 from 11.22 to 9.79 was observed. In the case of HCl treatment, the pH value decreased to 4.60 for biochar B-D1 and 4.22 for biochar B-D2. Modification of biochars by KOH also brings several advantages, it increases the number of hydroxyl groups on the surface, dissolves ash, condenses organic matter in the biochar [58] and produces a larger surface area with higher H/C, N/C, and lower O/C ratios [31]. Modification with KOH was also found to be successful in other studies. Wongrod et al. [58] reported enhanced Pb 2+ sorption when SS digestate biochar was treated with KOH solution. On the other hand, acid modification removes impurities, such as heavy metals, and introduces the acidic functional groups on the surface of the biochars, but in some cases, it may also decrease the surface area [102], which could be one of the explanations for the lower performance of HCl modified biochars in adsorbing heavy metals in this study.
In contrast to Cu 2+ ions, the highest biosorption capacities for Cd 2+ ions were achieved with unmodified biochars, followed by KOH modified biochars. The maximum biosorption capacity of 50.67 mg/g was calculated for biochar B-D1 (97% removal efficiency) and 47.92 mg/g (92%) for biochar B-D2. The differences in biosorption capacities of unmodified and modified biochars were higher in the case of Cd 2+ ions than Cu 2+ ions. Biochar B-D1 generally has a better affinity for heavy metals than biochar B-D2. However, the tested biochars exhibit higher biosorption capacity for biosorption of heavy metals than for NH 4 + or PO 4 3− ions. This could be related to the presence of mineral phases such as aluminosilicate, quartz, calcite and metal oxides on the biochar surface, which promote the sorption of metals [108]. The main mechanisms responsible for the heavy metal adsorption on biochar include complexation with oxygen-containing functional groups (-OH, -COOH), coordination of heavy metals with π electrons in unsaturated bonds (-CH, C=O and C=N), precipitation with different minerals such as PO 4 3− and ion exchange with positively charged ions such as K + , Ca 2+ , Na + and Mg 2+ [48]. In particular, π-electrons in biochars with the aromatic structure have been reported to have a strong potential to bind heavy metals [93].
The adsorption capacities for Cu 2+ and Cd 2+ ions obtained in this study were slightly higher than those reported in other works, but the comparison is difficult because the biosorption properties of biochars depend highly on the pyrolysis temperature and type of modification, while the initial ion concentrations also varied. For Cu 2+ adsorption by SS biochar, one of the studies reported a capacity of 5.3 mg/g (initial conc. of Cu 2+ 100 mg/L) [109], while another reported 11 mg/g [110]. Biosorption capacities of up to 89 mg/g for Cu 2+ and 93 mg/g for Cd 2+ were achieved with hydroxyapatite-modified sewage sludge biochar, and the capacity lower than 15 mg/g with unmodified biochar at initial conc. of 100 mg/L [111]. Similar removal capacities for SS biochar of around 20 mg/g were obtained at a Cd 2+ concentration of 50 mg/L in studies performed by Chen et al. [52] and Gao et al. [48]. When SS biochar obtained by an electromagnetic induction heating method was used, a biosorption capacity of 32.3 mg/g for Cd 2+ ions (100 mg/L) was achieved [32]. Compared with the above results, the biochars from this study showed good adsorption performance for Cu 2+ and Cd 2+ ions, so their application as biosorbents for the removal of heavy metals from wastewater could be possible. Further experiments on multi-metal biosorption or biosorption of multiple pollutants need to be performed in addition to the experiments with real wastewater.

Conclusions
In this work, kinetic and thermodynamic analyses of two types of solid digestate subjected to pyrolysis process were presented: (i) sewage sludge digestate and (ii) digestate obtained from co-digestion of sewage sludge and lignocellulosic biomass-specifically the plant T. latifolia. Pyrolysis of raw SS and TLP was performed as well for the comparison. Based on the experimental results, the following conclusions were made: • Thermogravimetric analysis revealed that the digestate samples had lower weight loss than raw SS or TLP due to pre-treatment with AD and gave higher biochar yield. E α values were higher for digestate than for raw samples. The maximum values were obtained for digestate composed of a mixture of SS and TLP. The KAS and FWO models showed excellent matching for raw materials, while for digestates, lower correlations were observed, most likely because of heterogeneous constitution, which influenced the pyrolysis process. Variation of the thermodynamic parameters (∆H, ∆G and ∆S) indicated that the degradation of digestates is more complex than degradation of SS or TLP. TLP with the highest ∆G values exhibited the highest bioenergy potential.

•
Chemical characterization of the biochars revealed high nutrient content and, thus, good prospects for their further utilization. Biochars performed very well with regard to biosorption of heavy metals (Cu and Cd), while biosorption of NH 4 + and PO 4 3− ions was less efficient. Modification of biochars with KOH significantly improved their biosorption ability for all ionic species, whereas HCl modification was found to be efficient only in the case of PO 4 3− adsorption. Germination tests with cress seeds showed that digestate-derived biochars can be used as soil amenders at a concentration of up to 10 wt.%. SS digestate-derived biochar showed better performance than the biochar derived from a digestate mixture of SS and TLP, the advantage of the latter being its lower heavy metal content.
Depending on biochar properties and the results obtained, the digestate-derived biochars can be used in various fields, such as soil conditioning and agriculture, pollution remediation, and in modified form for other purposes. This work contributes to sustainability by promoting the circularity of bioresources by using a by-product of anaerobic digestion (digestate of sewage sludge and T. latifolia biomass) to synthesize biochar, a valuable product that can be used as a biofuel. The use of biochars for various other purposes also follows the bioeconomy approach and represents a major step towards sustainability.

Limitations and Directions for Future Studies
Despite the extensive work done in this study, there are some limitations and knowledge gaps that open a new path for future research.
For example, only basic thermogravimetric experiments and kinetic analysis were performed in this study, the results of which cannot provide all the information needed for a complete understanding of the pyrolysis process of the selected feedstocks and, thus, experiments at a larger, pilot scale should be performed. The operating conditions, the changes in the biochar characteristics and its yield, the formation of other phases, such as the gas and liquid phases, and other parameters, should also be studied in more detail. The effects of various pollutants, including heavy metals, and the addition of various catalysts on the pyrolysis process and biochar quality could be studied. Due to the global shortage of phosphorus fertilizers, the possibility of phosphorus recovery should also be investigated.
This study does not address the economic aspects of biochar production from T. latifolia and its digestate; thus, the assessment of operating costs, economic viability, and other risks of using this plant in the pyrolysis process could be investigated. The environmental impact is also an important issue in the pyrolysis of T. latifolia in combination with SS. A study on the biosorption of pollutants from real wastewater by the obtained biochars would also be interesting, as the behavior of biochars in real wastewater and the biosorption efficiency are likely to be significantly different from the results obtained using the model water in this study. Before the actual use of the obtained biochars for agricultural purposes, germination experiments with other plant species, such as potato or cabbage, would be necessary to evaluate the possible accumulation of heavy metals from biochar in the plants and their fruits, and other changes in plant growth. Another interesting area for further study is the modification of biochar to improve its adsorption and catalytic ability, and to produce biochar-based catalysts or supercapacitors.