Sssspinning bike speed sensor

Hi!

Which is the best way to attach and configure Speed Sensor to a spinning bike?

Thanks and best regards,

José