I’m actually a retired electrical engineer, used to do aircraft avionics. Anyway it’s a simple thing to measure amperage loading on the motor to set a threshold for sleep and wake. But in engineering there’s always more than one way to accomplish a task. An optical sensor and timer would be another way to do it.