Magnetic sensors are devices that are able to detect changes in a magnetic field and convert them into electrical signals. Common types of magnetic sensors include Hall effect sensors, magnetoresistive sensors, and magnetometers. These sensors can be used for a wide range of purposes, such as sensing the position of a rotating shaft for motor control, detecting a door opening or closing, or measuring the strength of a magnetic field. Magnetic sensors are also used in a variety of medical and industrial applications.