Sensors for measuring physical quantities