Inspiration: Hand drill fire
Using the gyroscope to detect the object’s rotation, set the threshold to turn on the light. Adding a distance sensor to turn off the light is like putting out a fire or candle.
I found a Starbucks cup and imagine it is a wooden object, rotating the cup to turn on the light strip and turn off it by covering something on it.