Use an ultrasonic distance sensor to execute a script when an object is detected within range of the sensor.
Have you ever found something so hipnotic that you can sit and watch it for hours? Thats what happened to me after programming this...