'Welcome CC.
The finger, or other body part, will have electrical properties that inert objects such as pencils won't. Those properties might include electrostatic charge and capacitance. It's these that proximity switches use for the control of machinery etc.