Use /bin/bash, not /bin/sh as interpreter for read -t (timeout).