Physical nanosensors operate based on various principles. Some common mechanisms include piezoresistivity, where the electrical resistance of a material changes under mechanical strain, and piezoelectricity, where materials generate an electric charge in response to mechanical stress. Other mechanisms involve changes in optical properties, such as fluorescence or absorption, in response to physical stimuli.