A car reversing sensor: time an ultrasonic echo with pulseIn, turn it into centimetres, and beep faster as the wall gets closer. This workbench needs JavaScript.