I have an electrical circuit which uses an LED, connected to a µC, to show the status of an x-ray source in another room. Obviously this LED is important to have in a working condition.
Now, LEDs can fail in in multiple ways, one being a broken circuit, another being a short circuit.
I have thought about using a light sensitive resistor to check the status, yet the surrounding light might break this. I then thought about PWMing a "signal" on to my LED power, trying to read the same signal from my light sensitive resistor - assuming that no outside light emits the same strobe signal (I might even modulate the signal further in its frequency over time).
Is there a "best practice" way of detecting if my LED is still working, emitting light as it should, without being disturbed by outside light?