using bjt NPN transitor to get a zero output (led off) when there is current at the base as input.
1) Close the circuit,
2) Wait 2 or 3 seconds.
3) Open the circuit again.
The circuit will have power and output a one (led on) until there is no power left