The versatile nature of organic conjugated materials renders their flawless integration into a diverse family of optoelectronic devices with light-harvesting, photodetection, or light-emitting capabilities. Classes of materials that offer the possibilities of two or more distinct optoelectronic functions are particularly attractive as they enable smart applications while providing the benefits of the ease of fabrication using low-cost processes. Here, we develop a novel, multipurpose conjugated small molecule by combining boron-azadipyrromethene (aza-BODIPY) as electron acceptor with triphenylamine (TPA) as end-capping donor units. The implemented donor-acceptor-donor (D-A-D) configuration, in the form of TPA-azaBODIPY-TPA, preserves ideal charge transfer characteristics with appropriate excitation energy levels, with the additional ability to be used as either a charge transporting interlayer or light-sensing semiconducting layer in optoelectronic devices. To demonstrate its versatility, we first show that TPA-azaBODIPY-TPA can act as an excellent hole transport layer in methylammonium lead triiodide (MAPbI 3 )-based perovskite solar cells with measured power conversion efficiencies exceeding 17%, outperforming control solar cells with PEDOT:PSS by nearly 60%. Furthermore, the optical bandgap of 1.49 eV is shown to provide significant photodetection in the wavelength range of up to 800 nm where TPA-azaBODIPY-TPA functions as donor in