I have had some success making "customs" mounts for sensors using pieces of plastic or wood that I shaped to fit the surface of the stay and the sensor. Epoxy is also useful for this purpose. In your case you can probably mount the sensor under the stay this way and get it the right distance from the crank.