Connecting a buzzer to the raspberry pi There is a wire going into the doorbell button that shows voltage. and Door wire doorbell bell chimes diagram two button voltage wiring transformer chime shows bells second going do rings case using
Arduino - Door Sensor - Piezo Buzzer | Arduino Tutorial
Buzzer arduino nano interfacing
A guide: interfacing buzzer with arduino nano
.
.