On-chip sensing with a QCLD