The steering torque sensor measures the torque applied by the driver on the steering wheel. When the steering wheel is turned, a small torsion bar inside the unit allows the shaft to twist slightly, deforming a magnetic field. The sensor detects the amount of torque applied by measuring the change in the magnetic field.
The harder the steering wheel is turned, the greater the change in magnetic field, the greater the power assist.