It is important to note that the MAPbI 3 layer had been protected from moisture to help transfer the carrier using an interlayer at the interface between the MAPbI 3 and the transport layers. For example, a small amount of water was added to the MAPbI 3 precursor solvent during the deposition process to create a compact film 46. Recent studies considered the positive and negative aspects of the effect of moisture on MAPbI 3 using different approaches. One important aspect of ambient air conditions processes is the formation of high-quality films of oxygen-sensitive MAPbI 3 materials 45. Research regarding the fabricating of PSCs in ambient air conditions is currently at the foundational stage. To meet the above conditions, large-scale deposition techniques 37, 38, 39, 40 and an encapsulation process 41, 42, 43, 44 were studied. These processes and systems are expensive to perform because they relate to commercialization conditions that demand high stability with the additive-free hole transporter materials 35, 36, durability, and excellent performance, as well as large-scale, low cost, and ambient air manufacturing. To date, experiments have most often been conducted in laboratory conditions in the absence of moisture and oxygen such as inert atmosphere. In addition to forming a planar structure that eliminates the mesoporous (MP) layer which causes the J–V hysteresis problem, an inverted structure that changes the direction for reaching the electrodes of electrons and holes were studied, in which the efficiency of the perovskite solar cell (PSC) realized values higher than 23% 29, 30, 31, 32, 33, 34. To overcome this problem, charge transport material and charge transport layer/MAPbI 3 interface studies 23, 24, 25, 26 and perovskite material studies 27, 28 have been conducted. However, unbalanced carrier-mobility switches the direction and speed of the voltage sweep and leads to current density–voltage (J–V) hysteresis in mesoscopic structures 21, 22. Studies on sequential deposition 14, 15, solution processes 16, 17, 18, vapor deposition 19, and vapor-assisted solution processes 20 have been developed to obtain high-quality MAPbI 3. MAPbI 3 has attracted attention as a light-absorbing resource for next-generation solar cells 1, 2, 3, 4, 5 due to its high absorption coefficient 6, tunable bandgap 7, long carrier diffusion length 8, 9, 10, 11, and low-cost 12, 13. The A site cation is CH 3NH 3, the B site cation is Pb 2+, and the x site anion is I − in CH 3NH 3PbI 3 (MAPbI 3). Perovskite material has an ABX 3 crystal structure. However, limitation related to their efficiency, stability, and durability remain. To overcome this, organic solar cells and dye-sensitized solar cells have been studied. Nevertheless, it is difficult to apply these cells to electronics, clothing, and construction products that have many curves and transparent characteristics. The performance of silicon solar cells is close to its theoretical limit and has high stability. The field of solar cells, which is attracting attention as a renewable energy source, requires low-cost, high-efficiency, and stability characteristics. As a result, the efficiency of the perovskite solar cell was achieved 15.1% and showed over 84% maintain in efficiency in the ambient air for one month using the 65 nm PANI passivation layer. This study optimized the perovskite solar cells by controlling the concentration, thickness and drying conditions of the PANI passivation layer. Accordingly, the UV-A light did not reach the active layer and confined the Pb 2+ ions at PANI passivation layer. The passivation layer comprised a polyaniline (PANI) polymer as an interfacial modifier inserted between the active layer and the electron transport layer. This study improved a critical instability in perovskite solar cells arising from non-radiative recombination and UV-A light using a passivation layer. Recently, research was mainly conducted on the stability of perovskite against non-radiative recombination. Studies related to this context have remained ongoing. Perovskite decomposes upon exposure to moisture, thermal, and UV-A light. However, perovskite solar cells still suffer from long-term stability issues. Over the past number of years, the power conversion efficiency of perovskite solar cells has remained at 25.5%, reflecting a respectable result for the general incorporation of organometallic trihalide perovskite solar cells.