Αποστολή με SMS: Quantum metrology with imperfect states and detectors