Here's an example of a pantry lighting upgrade we did using our low-profile surface mounted LED strips. When the pantry door is opened, the lights automatically turn on. When the door is closed, the turn off. We used a magnetic proximity switch to do this.