A periodic test signal is injected into a sensor and the sensor output is compared to a threshold to determined whether the sensor is functioning properly. The invention further relates to an entity that has been labelled by a method according to the invention and to a diagnostic kit comprising a labelled entity and to a diagnostic kit to employ a method according to the invention. A first counter counts for one input clock period, and a delay value is determined based at least in part on the counted value.