Cadence sensor does not fit on crank arm of cervelo p3.

Does it use a magnet to operate? Can I get good results by putting the sensor horizontally on my bike frame with a magnet on the wheel?