new function in loop problem
pv and led ready