One-Dimensional Magnonic Crystal for Magnetic Field Sensing