For the first time, the use of monocyclic rings C18 and B9N9 as sensors for the sensing of carbazole-based anti-cancer drugs, such as tetrahydrocarbazole (THC), mukonal (MKN), murrayanine (MRY), and ellipticine (EPT), is described using DFT simulations and computational characterization. The geometries, electronic properties, stability studies, sensitivity, and adsorption capabilities of C18 and B9N9 counterparts towards the selected compounds confirm that the analytes interact through active cavities of the C18 and B9N9 rings of the complexes. Based on the interaction energies, the sensitivity of surfaces towards EPT, MKN, MRY, and THC analytes is observed. The interaction energy of EPT@B9N9, MKN@B9N9, MRY@B9N9, and THC@B9N9 complexes are observed - 20.40, - 19.49, - 20.07, and - 18.27kcal/mol respectively which is more exothermic than EPT@C18, MKN@C18, MRY@C18, and THC@C18 complexes are - 16.37, - 13.97, - 13.96, and - 11.39kcal/mol respectively. According to findings from the quantum theory of atoms in molecules (QTAIM) and the reduced density gradient (RDG), dispersion forces play a significant role in maintaining the stability of these complexes. The electronic properties including FMOs, density of states (DOS), natural bond orbitals (NBO), charge transfer, and absorption studies are carried out. In comparison of B9N9 and C18, the analyte recovery time for C18 is much shorter (9.91 × 10-11 for THC@C18) than that for B9N9 shorter recovery time value of 3.75 × 10-9 for EPT@B9N9. These results suggest that our reported sensors B9N9 and C18 make it faster to detect adsorbed molecules at room temperature. The sensor response is more prominent in B9N9 due to its fine energy gap and high adsorption energy. Consequently, it is possible to think of these monocyclic systems as a potential material for sensor applications.