Quantum Nanomechanical Devices as Sensors