Use mains AC as a switch for arduino?

hey gang, does anyone know if it's possible to use mains AC as a switch for the 'duino?

A little background:

Calculon is working on a project that he hopes will take advantage of his doorbell's AC power. He wants the old-school analog doorbell switch to activate a function on his arduino instead of firing off a solenoid in the door chime. Is this possible with some sort of voltage divider? He doesn't need to measure the current, voltage, phase, or anything liek that, he just needs to sense on/off like a pushbutton. He assumes the initial doorbell voltage will be 120V.

Thoughts?

 

UPDATE: The chime's transfomer puts it at 16v AC. Also, there is a spare 4-cables-in-1 red wire that is live and unused as well. 

UPDATE 2: Calculon knows to be careful, about disconnecting the power so he doesn't electrocute himself, and can live to a ripe old age and so forth. Thanks.

still 16v

sadly, calculon cannot remove the switch from the circuit. he is replacing a doorbell wih an arduino, not recycling parts. but he thanks you for your helps.

I’m not sure how your chime is connected…

The best soultion would be to completely remove the switch from the mains circuit.

It should be really easy to do that. Maybe you can show us a picture of your chime as it is installed or the fuse box or something like that…

If that fails you could also replace the chime with a light bulb and use a photoresistor on the arduino to sense when the light turns on. The advantage of this idea is that it’s cheap and you probably already have all the necessary parts, and your arduino is completely isolated from the high voltage circuit. You will probably have to put the bulb in a box so use a low power bulb, like one from a nighlight.

that’s perfect!

the lightbulb idea should work well