Help changing on/off function with sensor signal to on/timed function

thanks everyone, ill get reading