Interrupt on change is working, but not

Isn't providing consistent readings at 20kHz input