Hacking a 70 ft. motion sensor for security system

If you cut open one end of an extension cord you will see three wires:
Black- Hot (power)
White: Ground
Green: Ground

White is NEUTRAL - it is not the same as ground, even though it may look the same, act the same - it isn't. The white and green wires should -not- be interchanged; bad things could happen in the future if you do...