Code added for stopping when the IR sensor senses something.