Use distance sensor to trigger LED strip and stay on while the person is in range
if (inches &lt;= 38)

That You might want to change. Try using "while(inches &lt;= 38)" and moving sensor calculations to that loop. When ever the distance stays less than You want the light should stay on.