I suppose that dropping of the pencil is caused by muscles relaxing. I'm surprised a smartwatch can't detect this relaxation. But perhaps it's at the wrong location for that.
Is this a legit question? Instead of trying to sleep in an awkward position where you can drop something and have it wake you up, you could sleep in your bed and be woken up at the right time.