I have a doorbell that quit working. I don't know how to tell if it is the bell or the transformer
Yes it could be a dangerous situation. A better arrangement would be to mount the transformer on the outside of the panel box through a knockout. Better yet, mount it on a separate octagon box on the wall near the panel. Most doorbell transformers have an option to mount through a knockout on a box so that the 110 volt wires are inside the box, which is then covered with a blank plate. The doorbell wires then connect to the transformer outside of the box so there is no danger of high voltage getting into the low voltage circuit.
Verdugo: go to the transformer and check for power coming out you should get a 24 volts dc. Then, check for power across the switch you should get the same, then check for power at the bell. If you have power at the transformer and not the switch then re-wire the system. The key is having power. If you have power at the switch and nothing happens when you press on the switch and you do have power at the door bell when you press the switch then the bell is bad. That simple. Just follow the circuit. and just comdem where it stops. you can also check for continuity at the switch. if you don't get any signal when you press on it. the switch is bad.
you need to have a digital meter and know how to use it,,, or you could buy a whole door chime kit for like 15 buck and replace all the parts
It could be the switch as well! Unless you know about electricity, you would be better off hiring a handyman!! Or ask around, if a neighbor asked me I would help them out!
Take the cover off the bell and see if it runs on batteries. If it runs off a transformer you can touch the transformer it should be warm. If it is take the button off the outside and touch the 2 wires together if the bell works its the button. Its only 24 volts you won't get hurt.