new function to find start of hall signal