script to manage the doorbell