Can you use a motion sensor switch to control an outlet
Is it possible to use a motion sensor as the light switch?


Yes. You can buy standalone sensors designed to switch lights on and off. There are both plug-in switches and ones that you hard-wire to your light fitting.


  is there an easier way to get the LED lights to turn on automatically?


It depends. You could use a microswitch on the closet door.