Doorbell pulse counter with Arduino nano to direct the ringtone to an intercom handset

Hi xfd, thanks for the answer.
It's a translation mistake :

  • 1 press -> handset 1 rings (handset 2 & 3 stay silent)
  • 2 presses -> handset 2 rings while handset 1 and 3 stay silent)
  • 3 presses --> handset 3 rings .