The final stage of my rainwater filter system is a UV disinfectant. The control module has an indicator for "lamp good" and "lamp bad," but the whole thing is in a shed outside. I plan to use an ESP32 or something to monitor and alert me in case of failure.
How should I detect a failure?