For me the Proximity Switch does not always appear to function correctly. Make sure to place it without wires, then check if it turns green when near, turns red when moving away. If it does not turn red anymore, something else is giving it a signal, which is a bug.
See: