Int value servo control and program flow

use noInterrupts() and interrupts()

won't using a full-wave rectifying bridge result in 120 Hz?

why not use an opto-coupler and open-collector circuit with internal pullup resistor (i.e. INPUT_PULLUP)?