The working principle of nanomaterial-based gas sensors typically involves changes in electrical properties when exposed to target gases. For instance, in metal oxide nanostructures, gas molecules adsorb onto the surface, leading to a change in resistance or conductivity. This change is measured and correlated to the gas concentration. Similarly, in carbon nanotubes and graphene, gas adsorption can lead to changes in electrical conductivity, which is detected and analyzed.