Sensors for material measurements