The Hall-effect sensor is a type of magnetic sensor that detects changes in magnetic fields. It utilizes the Hall effect,…