I am interfacing a photoelectric switch with Arduino, an interrupt is to occur when there is a transition of the state on the switch. The problem is that when the transition occurs more than one interrupt occurs per transition. Has anyone ever had such problems?
could it be that your switch is detecting faster than you expect it? if you are sensing something like fluorescent lights you might be detecting the 60hz pulse. more information is needed