These sensors operate based on the principle of magnetoresistance. When a magnetic field is applied to certain materials, their electrical resistance changes. In the context of nanotechnology, this effect is often enhanced using thin film materials and nanostructures. The most common types of magnetoresistive sensors are Giant Magnetoresistance (GMR) and Tunnel Magnetoresistance (TMR) sensors.