Ismail Uddin over at Science Exposure has created a device that detects movement and then dispenses water. He’s taken a Raspberry Pi, a RaspiRobot board, a peristaltic pump and an SR-04 ultrasonic rangefinder module and put them together. His code and write-up is available on the Science Exposure blog – Read more here.