Other CMOS gates can be used in this sensor, which we found in the July 1995 Electronic Now magazine. The circuit picks up AC hum from the power grid or other sources.