hall effect sensor read many times


i have a very strange problem with hall effect sensor. i am using tiny2313 connecting to 44e hall sensor and tiny pin pulled high. when it is trigged the pin should go low for ONCE with this code:

yes it is but it is just like digitalread with no any other control code. when it crossed the trigger it is at least 30time to count but it should be 1. any idea?

You could be getting the equivalent of contact bounce from the mechanical introduction of the magnet to the sensor. Simple way round this is to add a 20mS ( or so ) delay after you have detected a change.