New dyes were developed and produced utilizing distinct electron donors (phenothiazine and dibenzofuran), a p-spacer, and an electron acceptor of cyanoacetohydrazide, and their structures were studied using FT-IR and NMR spectroscopy. Following the synthesis of dye molecules, the photophysical and photovoltaic characteristics were investigated using experimental and theoretical methods. The photosensitizers have been exposed to electrochemical and optical property experiments in order to study their absorption performance and also molecular orbital energies. The monochromatic optical conversion efficiency of (Z)-N-((5-(10H-phenothiazin-2-yl)furan-2-yl)methylene)-2-cyanoacetohydrazide (PFCH) found higher than that of (Z)-2-cyano-N'-((5-(dibenzo[b,d]furan-4-yl)furan-2-yl)methylene)acetohydrazide (BFCH), with IPCEs of 58 and 64% for BFCH and PFCH, respectively. According to the photosensitizer molecular energy level diagram, the studied dye molecules have strong thermodynamically advantageous ground and excited state oxidation potentials for electron injection into the conduction band of titanium oxide. It was observed that the ability to attract electrons correlated favorably with molecular orbital energy. While density functional theory calculations were used to examine molecule geometries, vertical electronic excitations, and frontier molecular orbitals, experimental and computed results were consistent. Natural bond orbital and nonlinear optical properties were also calculated and discussed.