As per new Arduino library, digitalPinToInterrupt() needs to be added to attachInterrupt().
As per new Arduino library, digitalPinToInterrupt() needs to be added to attachInterrupt().