Organic donor-pi-acceptor sensitizers are a promising path to achieving cheaper and more efficient dye sensitized solar cells. The π-bridge plays an important part in the photovoltaic properties of the dye, and sulfur systems, like thiophene, have been favorites for this role. We aim to investigate the change in photovoltaic properties for systems that utilize heteroatoms besides sulfur. Using density functional theory, we have investigated the spectroscopic and electronic properties of the D5 organic dye upon heteroatom substitution for sulfur in the π-bridge. We substituted for sulfur with pnictogens, chalcogens, and various other elements in the second row of the periodic table. We find the larger elements reduce the HOMO-LUMO gap, red shift the absorption spectrum, increase the dipole moment and are energetically favorable for electron injection. In particular, π-bridge systems utilizing selenium or phosphorus, instead of the more prevalent sulfur, could prove to be more efficient based on our analysis of photovoltaic properties.