replaced loop cycle to 5 times reading