Problem programming a conveyor to stop near a proximity sensor

Do not double post.