First time using interrupts

I think you have the 2 use cases mixed up. The resistor is not for an interrupt. It is for a more passive instrument.

And will be connected to analog pin 5, in which case how/why digital write? Its to an analog pin