Fixture for holding sensor