I think when I want it to work without connecting the wires to the doorbell, it will take more time to get it to work, than just connecting it.I thought you couldn't connect anything to the doorbell?
Is it possible to get 3.3v? Or do I need a voltage divider to get this signal?The HA11AA1 would do the job. Connect the input with a 390Ω resistor in series across the bell, and then use a 10kΩ pull-up resistor to +5V to get your logic output signal.