The adsorbing and sensing behavior of the volatile organic compounds (VOCs), e.g., formaldehyde, acetaldehyde, acetone, methanol, ethanol, ethylene oxide, and propylene oxide by pentagonal B2C nanosheet (pentaB2C), have been investigated with the periodic density functional theory approach. The results reveal that adsorbed VOCs on a penta-B2C nanosheet have reduced the band gap ranges from 6 to 60 %. So, the penta-B2C nanosheet can sense these VOC molecules well. Adsorption energy values for the formaldehyde, acetaldehyde, acetone, methanol, ethanol, ethylene oxide, and propylene oxide complexes with desired penta-B2C nanosheet are − 1.07, − 1.06, − 1.17, − 1.00, − 1.04, − 0.88, and − 1.04 eV, respectively. The calculated recovery time at 400 K for the considered complexes without radiation is 35, 24, 685, 4, 13, 0.13, and 13 s, respectively. Computed sensitivity values for the studied VOCs/penta-B2C complexes range from 5 to 36034955. So the penta-B2C nanosheet could be a noteworthy substrate for detecting the presented VOCs.