I have a arduino controling a motor! I have a 7day programable timer, that replaces a light switch. I want to use this to " trigger" the arduino to run the 12v motor until it hits a limit switch. When the timer shuts off, i want the arduino to reverse the motor until it hits a limit switch. I have the motor control stuff all figured out, and working.
Question is: What is the easiest/best way to detect the 120v on/off?