Motion sensor with lights, turning off after certain amount of time

In the THEN part u put the lights on to 70% and also off with the next card. But why re-invent the wheel?