Hierarchical porous activated carbon/fly ash/PEDOT:PSS composites (AC:FA) for a counter electrode (CE) were created using a doctor blade technique and applied in dye sensitized solar cells. Hierarchical porous activated carbon (AC) was produced using a potassium hydroxide (KOH) activation process from cantaloupe peels (Cucumis melo L. var. cantaloupensis). AC was introduced into fly ash at various mass ratios to enhance several physical and electrochemical characteristics. Compared to bare FA, the AC:FA electrode displayed a high electrocatalytic activity for the iodide/triiodide redox (I−/I3−) reaction. The test findings show that a higher proportion of AC has an impact on a CE's catalytic activity and charge transfer resistance. The power conversion efficiency (PCE) of the dye-sensitized solar cell (DSSC) attained 5.81 % using the AC:FA CE with AC in a mass ratio of FA in 3:1 (wt./wt.), which is very near the performance of manufactured DSSC's with a platinum (Pt)-based CE (5.91 %). The AC:FA CE stands out as a strong candidate to substitute for costly Pt CEs due to its enhanced electrochemical activity and charge transfer capabilities obtained with an inexpensive and simple production procedure.