Sensor-based life detection of solar cells