When we used a bike on a trainer, we set up a cycling computer to the rear wheel - that worked well.

We bought a spin bike last year which comes with its own computer (which does HR, speed, distance, average etc etc) ... but we added another so we could monitor cadence.