PaulS:
What kind of device is connected to the door bell pin? Switches are almost always digital devices. They are pressed or not.
It's a wireless doorbell. I press doorbell button on the transmitter, signal sent wirelessly to the receiver. Receiver was connected to a speaker, it's now connected to the arduino's analog pin.
Do I need to introduce yet another variable to be 'set' by a positive analog read and then unset once the code it triggers is executed?