Design of hall sensors and its applications