A Hall effect sensor is a transducer that varies its output voltage in response to a magnetic field. Hall effect…