Use https when connecting to sensor connector if the current page is https