First time using interrupts

do you mean didtalWrite? even though its an analog input?