Nowadays, various static wireless sensor networks (WSN) are deployed in the environment, for many purposes: traffic control, pollution monitoring, etc. The willingness to open these legacy WSNs to the users is emerging, by integrating them to the Internet network as part of the future Internet of Things (IoT), for example in the context of smart cities and open data policies. While legacy sensors can not be directly connected to the Internet in general, emerging standards such as 6LoWPAN are aimed at solving this issue but require to update or replace the existing devices. As a solution to connect legacy sensors to the IoT, we propose to take advantage of the multi-modal connectivity as well as the mobility of smartphones to use phones as opportunistic proxies, that is, mobile proxies that opportunistically discover closeby static sensors and act as intermediaries with the IoT, with the additional benefit of bringing fresh information about the environment to the smartphones' owners. However, this requires to monitor the smartphone's mobility and further infer when to discover and register the sensors so as to guarantee the efficiency and reliability of opportunistic proxies. To that end, we introduce and evaluate an approach based on mobility analysis that uses a novel path prediction technique to predict when and where the user is not moving, and thereby serves anticipating the registration of sensors within communication range. We show that this technique enables the deployment of low-cost resource-efficient mobile proxies to connect legacy WSNs with the IoT.