Should work just fine. In the end it's just a kind of antenna. Do look up how such sensors work, or try to build your own Theremin then integrate it into your lamp!
As I said, they stand and fall with proper grounding - as otherwise the whole object's potential will start floating.