The linear encoder is typically made of a series of magnetic materials that form specific magnetic patterns under the influence of an external magnetic field. The sensor is responsible for perceiving changes in these magnetic patterns and converting them into electrical signals. By processing these electrical signals, the displacement of the object can be accurately calculated. Similarly, the magnetic scale is also part of a linear encoder.